]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Introduce gdb.ValuePrinter
authorTom Tromey <tromey@adacore.com>
Thu, 7 Sep 2023 19:40:29 +0000 (13:40 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 26 Sep 2023 15:29:14 +0000 (09:29 -0600)
commitfb282576998ca7ce70526dea42d41a7f418879c9
tree9614218e6679bdfb2c28f2962ac16b16ea8f06a2
parent854f72b36dc72dc23b24563c5e7f43efc373b712
Introduce gdb.ValuePrinter

There was an earlier thread about adding new methods to
pretty-printers:

https://sourceware.org/pipermail/gdb-patches/2023-June/200503.html

We've known about the need for printer extensibility for a while, but
have been hampered by backward-compatibilty concerns: gdb never
documented that printers might acquire new methods, and so existing
printers may have attribute name clashes.

To solve this problem, this patch adds a new pretty-printer tag class
that signals to gdb that the printer follows new extensibility rules.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30816
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
gdb/NEWS
gdb/doc/python.texi
gdb/python/lib/gdb/printer/bound_registers.py
gdb/python/lib/gdb/printing.py
gdb/python/py-prettyprint.c