public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add pretty-printer base class and new methods
@ 2023-09-11 17:28 Tom Tromey
  2023-09-11 17:28 ` [PATCH 1/2] Introduce gdb.ValuePrinter Tom Tromey
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Tom Tromey @ 2023-09-11 17:28 UTC (permalink / raw)
  To: gdb-patches

This adds a pretty-printer base class, to make it possible for gdb to
extend the pretty-printer API over time.

Then, a couple of new methods are added and the no-op array printer is
changed to use these, rather than the current approach of adding an
attribute and hoping it works ok.

Regression tested on x86-64 Fedora 36.

---
Tom Tromey (2):
      Introduce gdb.ValuePrinter
      Add two new pretty-printer methods

 gdb/NEWS                                      |  5 ++
 gdb/doc/python.texi                           | 68 ++++++++++++++++++++-------
 gdb/python/lib/gdb/dap/varref.py              | 22 ++++++---
 gdb/python/lib/gdb/printer/bound_registers.py |  9 ++--
 gdb/python/lib/gdb/printing.py                | 49 ++++++++++---------
 gdb/python/py-prettyprint.c                   | 65 +++++++++++++++++++++++++
 6 files changed, 168 insertions(+), 50 deletions(-)
---
base-commit: 14432bde076fdee66e6163993eadf592742935da
change-id: 20230911-pp-v2-9efa40abcc4e

Best regards,
-- 
Tom Tromey <tromey@adacore.com>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-09-26 14:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-11 17:28 [PATCH 0/2] Add pretty-printer base class and new methods Tom Tromey
2023-09-11 17:28 ` [PATCH 1/2] Introduce gdb.ValuePrinter Tom Tromey
2023-09-11 19:04   ` Eli Zaretskii
2023-09-26 14:08     ` Tom Tromey
2023-09-11 17:28 ` [PATCH 2/2] Add two new pretty-printer methods Tom Tromey
2023-09-11 19:00   ` Eli Zaretskii
2023-09-26 14:09 ` [PATCH 0/2] Add pretty-printer base class and new methods Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).