Subject: 30.2; Outdated Python conditional in .gdbinit

From: Jeremy Bryant <[email-masked]>
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?