From 978d6c756fcb0332ddf12e19305dd0e53b98a93d Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 23 Apr 2017 11:03:57 -0600 Subject: 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 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) : New constant. gdb/doc/ChangeLog 2018-03-26 Tom Tromey PR backtrace/15582: * gdb.texinfo (Backtrace): Mention "hide" argument. gdb/testsuite/ChangeLog 2018-03-26 Tom Tromey PR backtrace/15582: * gdb.python/py-framefilter.exp: Add "bt hide" test. --- gdb/doc/ChangeLog | 5 +++++ gdb/doc/gdb.texinfo | 6 ++++++ 2 files changed, 11 insertions(+) (limited to 'gdb/doc') diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 413e456..4da77de 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,5 +1,10 @@ 2018-03-26 Tom Tromey + PR backtrace/15582: + * gdb.texinfo (Backtrace): Mention "hide" argument. + +2018-03-26 Tom Tromey + * gdb.texinfo (Backtrace): Describe options individually. 2018-03-19 Tom Tromey diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 28254c9..d37b107 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -7342,6 +7342,12 @@ Filter API}, for more information. Additionally use @ref{disable frame-filter all} to turn off all frame filters. This is only relevant when @value{GDBN} has been configured with @code{Python} support. + +@item hide +A Python frame filter might decide to ``elide'' some frames. Normally +such elided frames are still printed, but they are indented relative +to the filtered frames that cause them to be elided. The @code{hide} +option causes elided frames to not be printed at all. @end table @end table -- cgit v1.1