Bug 15582 - need a way to omit elided frames
Summary: need a way to omit elided frames
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: backtrace (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: 8.2
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-05 18:03 UTC by Tom Tromey
Modified: 2018-03-31 12:21 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Tromey 2013-06-05 18:03:34 UTC
Right now frames that are elided by a frame filter are displayed
indented.  It seems like it might be handy to be able to omit
them entirely from the CLI output, via an argument to "bt".
Comment 1 Sourceware Commits 2018-03-27 04:06:08 UTC
The master branch has been updated by Tom Tromey <tromey@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=978d6c756fcb0332ddf12e19305dd0e53b98a93d

commit 978d6c756fcb0332ddf12e19305dd0e53b98a93d
Author: Tom Tromey <tom@tromey.com>
Date:   Sun Apr 23 11:03:57 2017 -0600

    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.
Comment 2 Tom Tromey 2018-03-27 04:07:52 UTC
Fixed.