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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Jeremy Bryant <jb <at> jeremybryant.net>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#79341: closed (30.2; Outdated Python conditional in .gdbinit)
Date: Sun, 31 Aug 2025 20:35:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 31 Aug 2025 21:34:14 +0100
with message-id <87iki3p6wp.fsf <at> jeremybryant.net>
and subject line Re: 30.2; Outdated Python conditional in .gdbinit
has caused the debbugs.gnu.org bug report #79341,
regarding 30.2; Outdated Python conditional in .gdbinit
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
79341: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=79341
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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?



[Message part 3 (message/rfc822, inline)]
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.


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.