Subject: bug#79341: closed (Re: 30.2; Outdated Python conditional in .gdbinit)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 31 Aug 2025 20:35:02 +0000

Your bug report

#79341: 30.2; Outdated Python conditional in .gdbinit

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
79341: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=79341
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: 30.2; Outdated Python conditional in .gdbinit
From: Jeremy Bryant <[email-masked]>
To: Paul Eggert <[email-masked]>, [email-masked]
Cc: [email-masked]
Date: Sun, 31 Aug 2025 21:34:14 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Paul Eggert <[email-masked]> 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.

Subject: 30.2; Outdated Python conditional in .gdbinit
From: Jeremy Bryant <[email-masked]>
To: [email-masked]
Cc: Paul Eggert <[email-masked]>
Date: Fri, 29 Aug 2025 23:22:32 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

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?