public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [RFC 0/2] Using pretty-printers for [] indexing
@ 2021-04-22 14:10 Andrew Burgess
  2021-04-22 14:10 ` [RFC 1/2] gdb: enable [] to find children using pretty-printers Andrew Burgess
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Andrew Burgess @ 2021-04-22 14:10 UTC (permalink / raw)
  To: gdb-patches

I've been playing with the idea of reusing the pretty-printers to
provide [] indexing.  I wonder what people thought of this?

All feedback welcome.

Thanks,
Andrew

---

Andrew Burgess (2):
  gdb: enable [] to find children using pretty-printers
  gdb: improve equal check used by the pretty-printer [] support

 gdb/ChangeLog                                 |  25 ++
 gdb/NEWS                                      |   7 +
 gdb/doc/ChangeLog                             |   5 +
 gdb/doc/python.texi                           |   9 +
 gdb/eval.c                                    |  92 ++++--
 gdb/extension-priv.h                          |   6 +
 gdb/extension.c                               |  22 ++
 gdb/extension.h                               |  18 ++
 gdb/guile/guile.c                             |   2 +
 gdb/python/py-prettyprint.c                   | 179 ++++++++++++
 gdb/python/python-internal.h                  |   4 +
 gdb/python/python.c                           |   2 +
 gdb/testsuite/ChangeLog                       |  23 ++
 .../gdb.python/py-prettyprint-subscript.c     | 124 ++++++++
 .../gdb.python/py-prettyprint-subscript.cc    | 187 ++++++++++++
 .../gdb.python/py-prettyprint-subscript.exp   | 194 +++++++++++++
 .../gdb.python/py-prettyprint-subscript.py    | 274 ++++++++++++++++++
 17 files changed, 1156 insertions(+), 17 deletions(-)
 create mode 100644 gdb/testsuite/gdb.python/py-prettyprint-subscript.c
 create mode 100644 gdb/testsuite/gdb.python/py-prettyprint-subscript.cc
 create mode 100644 gdb/testsuite/gdb.python/py-prettyprint-subscript.exp
 create mode 100644 gdb/testsuite/gdb.python/py-prettyprint-subscript.py

-- 
2.25.4


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

end of thread, other threads:[~2021-06-17 18:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-22 14:10 [RFC 0/2] Using pretty-printers for [] indexing Andrew Burgess
2021-04-22 14:10 ` [RFC 1/2] gdb: enable [] to find children using pretty-printers Andrew Burgess
2021-04-22 14:18   ` Eli Zaretskii
2021-05-13 16:28   ` Simon Marchi
2021-04-22 14:10 ` [RFC 2/2] gdb: improve equal check used by the pretty-printer [] support Andrew Burgess
2021-05-13 10:35 ` [RFC 0/2] Using pretty-printers for [] indexing Andrew Burgess
2021-06-17 18:37   ` Simon Marchi

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).