[RFC 0/2] Using pretty-printers for [] indexing
Andrew Burgess
andrew.burgess@embecosm.com
Thu Apr 22 14:10:42 GMT 2021
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
More information about the Gdb-patches
mailing list