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>

To reply to this bug, email your comments to 79341 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#79341; Package emacs. (Fri, 29 Aug 2025 22:23:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jeremy Bryant <jb <at> jeremybryant.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 29 Aug 2025 22:23:02 GMT) Full text and rfc822 format available.

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?





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79341; Package emacs. (Fri, 29 Aug 2025 23:43:02 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Jeremy Bryant <jb <at> jeremybryant.net>
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: 30.2; Outdated Python conditional in .gdbinit
Date: Fri, 29 Aug 2025 16:42:34 -0700
On 2025-08-29 15:22, Jeremy Bryant wrote:
> 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.

Unlikely but it happens. When I test on Solaris 10 sparc (admittedly an 
old platform, but still supported by Oracle), I use the GDB it supplies, 
which is GDB 6.2.1 (2004).

> It would simplify this part of .gdbinit if we could remove this whole if
> statement

It's just a single "if" line, plus indenting some following lines. How 
much simplification would it really be if we removed one line and 
unindented the rest?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79341; Package emacs. (Sun, 31 Aug 2025 17:47:02 GMT) Full text and rfc822 format available.

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

From: Jeremy Bryant <jb <at> jeremybryant.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: 30.2; Outdated Python conditional in .gdbinit
Date: Sun, 31 Aug 2025 18:45:44 +0100
Paul Eggert <eggert <at> cs.ucla.edu> writes:

> On 2025-08-29 15:22, Jeremy Bryant wrote:
>> 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.
>
> Unlikely but it happens. When I test on Solaris 10 sparc (admittedly
> an old platform, but still supported by Oracle), I use the GDB it
> supplies, which is GDB 6.2.1 (2004).

OK, noted the use case.
In that case, perhaps the time to stop supporting GDB 7 is 'not yet'

>> It would simplify this part of .gdbinit if we could remove this whole if
>> statement
>
> It's just a single "if" line, plus indenting some following lines. How
> much simplification would it really be if we removed one line and
> unindented the rest?

Is this a fundamental change?  No.  It would be a fairly trivial
amendment to your contribution, as you indeed describe, to improve
readability a little.  Should we wait?





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79341; Package emacs. (Sun, 31 Aug 2025 18:54:02 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Jeremy Bryant <jb <at> jeremybryant.net>
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: 30.2; Outdated Python conditional in .gdbinit
Date: Sun, 31 Aug 2025 11:53:03 -0700
On 2025-08-31 10:45, Jeremy Bryant wrote:
>>> It would simplify this part of .gdbinit if we could remove this whole if
>>> statement
>> It's just a single "if" line, plus indenting some following lines. How
>> much simplification would it really be if we removed one line and
>> unindented the rest?
> Is this a fundamental change?  No.  It would be a fairly trivial
> amendment to your contribution, as you indeed describe, to improve
> readability a little.  Should we wait?

Sounds like we should wait, if peoplestill want to debug on Solaris 10. 
I'm not seeing enough improvement to readability (unindent by one level 
is not much of an improvement) to justify cutting off an 
otherwise-supported platform.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79341; Package emacs. (Sun, 31 Aug 2025 20:35:01 GMT) Full text and rfc822 format available.

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

From: Jeremy Bryant <jb <at> jeremybryant.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>, 79341-done <at> debbugs.gnu.org
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: 30.2; Outdated Python conditional in .gdbinit
Date: Sun, 31 Aug 2025 21:34:14 +0100
Paul Eggert <eggert <at> cs.ucla.edu> writes:

> On 2025-08-31 10:45, Jeremy Bryant wrote:
>>>> It would simplify this part of .gdbinit if we could remove this whole if
>>>> statement
>>> It's just a single "if" line, plus indenting some following lines. How
>>> much simplification would it really be if we removed one line and
>>> unindented the rest?
>> Is this a fundamental change?  No.  It would be a fairly trivial
>> amendment to your contribution, as you indeed describe, to improve
>> readability a little.  Should we wait?
>
> Sounds like we should wait, if peoplestill want to debug on Solaris
> 10. I'm not seeing enough improvement to readability (unindent by one
> level is not much of an improvement) to justify cutting off an
> otherwise-supported platform.

OK, we can revisit the suggestion at some future point.

Closing the bug number for the time being.




Reply sent to Jeremy Bryant <jb <at> jeremybryant.net>:
You have taken responsibility. (Sun, 31 Aug 2025 20:35:02 GMT) Full text and rfc822 format available.

Notification sent to Jeremy Bryant <jb <at> jeremybryant.net>:
bug acknowledged by developer. (Sun, 31 Aug 2025 20:35:02 GMT) Full text and rfc822 format available.

This bug report was last modified 10 days ago.

Previous Next


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