aboutsummaryrefslogtreecommitdiff
path: root/gdb/NEWS
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-09-07 13:40:29 -0600
committerTom Tromey <tromey@adacore.com>2023-09-26 09:29:14 -0600
commitfb282576998ca7ce70526dea42d41a7f418879c9 (patch)
tree9614218e6679bdfb2c28f2962ac16b16ea8f06a2 /gdb/NEWS
parent854f72b36dc72dc23b24563c5e7f43efc373b712 (diff)
downloadgdb-fb282576998ca7ce70526dea42d41a7f418879c9.zip
gdb-fb282576998ca7ce70526dea42d41a7f418879c9.tar.gz
gdb-fb282576998ca7ce70526dea42d41a7f418879c9.tar.bz2
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>
Diffstat (limited to 'gdb/NEWS')
-rw-r--r--gdb/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/NEWS b/gdb/NEWS
index 957b5a9..5b9ca9b 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -293,6 +293,11 @@ show tui mouse-events
might be array- or string-like, even if they do not have the
corresponding type code.
+ ** gdb.ValuePrinter is a new class that can be used as the base
+ class for the result of applying a pretty-printer. As a base
+ class, it signals to gdb that the printer may implement new
+ pretty-printer methods.
+
*** Changes in GDB 13
* MI version 1 is deprecated, and will be removed in GDB 14.