diff options
author | Tom Tromey <tom@tromey.com> | 2017-04-23 11:03:57 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-03-26 21:57:11 -0600 |
commit | 978d6c756fcb0332ddf12e19305dd0e53b98a93d (patch) | |
tree | 4cc45e6fc13330028284e03e5062455237afe342 /gdb/extension.h | |
parent | 1cf7e64086d1490649dc56e1c0505be91c600218 (diff) | |
download | binutils-978d6c756fcb0332ddf12e19305dd0e53b98a93d.zip binutils-978d6c756fcb0332ddf12e19305dd0e53b98a93d.tar.gz binutils-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/extension.h')
-rw-r--r-- | gdb/extension.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/extension.h b/gdb/extension.h index 943792d..a972928 100644 --- a/gdb/extension.h +++ b/gdb/extension.h @@ -103,6 +103,9 @@ enum frame_filter_flag /* Set this flag if a "More frames" message is to be printed. */ PRINT_MORE_FRAMES = 1 << 4, + + /* Set this flag if elided frames should not be printed. */ + PRINT_HIDE = 1 << 5, }; DEF_ENUM_FLAGS_TYPE (enum frame_filter_flag, frame_filter_flags); |