GNU bug report logs - #79341
30.2; Outdated Python conditional in .gdbinit

Previous Next

Package: emacs;

Reported by: Jeremy Bryant <jb <at> jeremybryant.net>

Date: Fri, 29 Aug 2025 22:23:01 UTC

Severity: normal

Found in version 30.2

Done: Jeremy Bryant <jb <at> jeremybryant.net>

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jeremy Bryant <jb <at> jeremybryant.net>
To: bug-gnu-emacs <at> gnu.org
Cc: Paul Eggert <eggert <at> cs.ucla.edu>
Subject: 30.2; Outdated Python conditional in .gdbinit
Date: Fri, 29 Aug 2025 23:22:32 +0100
Dear Emacs developers, Paul,

In .gdbinit, before the Python commands, we have this if statement.

2b91f3d1eac4 (Paul Eggert         2017-05-05 1334) # Omit pretty-printing in older (pre-7.3) GDBs that lack it.
2b91f3d1eac4 (Paul Eggert         2017-05-05 1335) if hasattr(gdb, 'printing'):

According to
https://sourceware.org/gdb/news/
GDB 7.3 was released in 2011.

Whilst older Emacs versions may be used by users for a long time 'in the
wild', it seems unlikely that a developer would use such an old GDB.

It would simplify this part of .gdbinit if we could remove this whole if
statement, and also make it more readable so we can add more Python
commands for GDB for Emacs.

Paul, any comments or suggestions, WDYT?





This bug report was last modified 11 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.