[PATCH 0/2] Add new 'print max-depth' feature
Andrew Burgess
andrew.burgess@embecosm.com
Wed Mar 27 21:53:00 GMT 2019
To make code review a little easier I split this feature into two
parts, first adding a new field to the language structure, which is
then used in the second commit.
For review purposes you're probably better looking at the second
commit first, hopefully afer that the motivation for the first commit
should be clearer.
--
Andrew Burgess (2):
gdb: Introduce new language field la_struct_too_deep_ellipsis
gdb: Introduce 'print max-depth' feature
gdb/ChangeLog | 42 ++++++
gdb/NEWS | 9 ++
gdb/ada-lang.c | 1 +
gdb/c-lang.c | 4 +
gdb/cp-valprint.c | 32 +++--
gdb/d-lang.c | 1 +
gdb/doc/ChangeLog | 7 +
gdb/doc/gdb.texinfo | 57 ++++++++
gdb/doc/guile.texi | 3 +
gdb/doc/python.texi | 3 +
gdb/f-lang.c | 1 +
gdb/go-lang.c | 1 +
gdb/guile/scm-pretty-print.c | 23 ++-
gdb/language.c | 2 +
gdb/language.h | 5 +
gdb/m2-lang.c | 1 +
gdb/objc-lang.c | 1 +
gdb/opencl-lang.c | 1 +
gdb/p-lang.c | 1 +
gdb/python/py-prettyprint.c | 22 ++-
gdb/rust-lang.c | 1 +
gdb/testsuite/ChangeLog | 12 ++
gdb/testsuite/gdb.base/max-depth.c | 209 +++++++++++++++++++++++++++
gdb/testsuite/gdb.base/max-depth.exp | 122 ++++++++++++++++
gdb/testsuite/gdb.fortran/max-depth.exp | 41 ++++++
gdb/testsuite/gdb.fortran/max-depth.f90 | 40 ++++++
gdb/testsuite/gdb.python/py-nested-maps.c | 122 ++++++++++++++++
gdb/testsuite/gdb.python/py-nested-maps.exp | 211 ++++++++++++++++++++++++++++
gdb/testsuite/gdb.python/py-nested-maps.py | 129 +++++++++++++++++
gdb/testsuite/lib/gdb.exp | 30 ++++
gdb/valprint.c | 66 ++++++++-
gdb/valprint.h | 3 +
32 files changed, 1188 insertions(+), 15 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/max-depth.c
create mode 100644 gdb/testsuite/gdb.base/max-depth.exp
create mode 100644 gdb/testsuite/gdb.fortran/max-depth.exp
create mode 100644 gdb/testsuite/gdb.fortran/max-depth.f90
create mode 100644 gdb/testsuite/gdb.python/py-nested-maps.c
create mode 100644 gdb/testsuite/gdb.python/py-nested-maps.exp
create mode 100644 gdb/testsuite/gdb.python/py-nested-maps.py
--
2.14.5
More information about the Gdb-patches
mailing list