Allow hiding of some filtered frames
authorTom Tromey <tom@tromey.com>
Sun, 23 Apr 2017 17:03:57 +0000 (11:03 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 27 Mar 2018 03:57:11 +0000 (21:57 -0600)
commit978d6c756fcb0332ddf12e19305dd0e53b98a93d
tree4cc45e6fc13330028284e03e5062455237afe342
parent1cf7e64086d1490649dc56e1c0505be91c600218
Allow hiding of some filtered frames

When a frame filter elides some frames, they are still printed by
"bt", indented a few spaces.  PR backtrace/15582 notes that it would
be nice for users if elided frames could simply be dropped.  This
patch adds this capability.

gdb/ChangeLog
2018-03-26  Tom Tromey  <tom@tromey.com>

PR backtrace/15582:
* stack.c (backtrace_command): Parse "hide" argument.
* python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
* extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
constant.

gdb/doc/ChangeLog
2018-03-26  Tom Tromey  <tom@tromey.com>

PR backtrace/15582:
* gdb.texinfo (Backtrace): Mention "hide" argument.

gdb/testsuite/ChangeLog
2018-03-26  Tom Tromey  <tom@tromey.com>

PR backtrace/15582:
* gdb.python/py-framefilter.exp: Add "bt hide" test.
gdb/ChangeLog
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/extension.h
gdb/python/py-framefilter.c
gdb/stack.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-framefilter.exp