aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-04-23 11:03:57 -0600
committerTom Tromey <tom@tromey.com>2018-03-26 21:57:11 -0600
commit978d6c756fcb0332ddf12e19305dd0e53b98a93d (patch)
tree4cc45e6fc13330028284e03e5062455237afe342 /gdb/doc
parent1cf7e64086d1490649dc56e1c0505be91c600218 (diff)
downloadgdb-978d6c756fcb0332ddf12e19305dd0e53b98a93d.zip
gdb-978d6c756fcb0332ddf12e19305dd0e53b98a93d.tar.gz
gdb-978d6c756fcb0332ddf12e19305dd0e53b98a93d.tar.bz2
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.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo6
2 files changed, 11 insertions, 0 deletions
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 <tom@tromey.com>
+ PR backtrace/15582:
+ * gdb.texinfo (Backtrace): Mention "hide" argument.
+
+2018-03-26 Tom Tromey <tom@tromey.com>
+
* gdb.texinfo (Backtrace): Describe options individually.
2018-03-19 Tom Tromey <tom@tromey.com>
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