Add debug output about skipping files and functions
authorSimon Marchi <simon.marchi@ericsson.com>
Wed, 12 Sep 2018 16:24:41 +0000 (12:24 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Wed, 12 Sep 2018 16:25:26 +0000 (12:25 -0400)
commit3e68067fb2d59ea93ea95d713a6c27b635332912
tree4eb5274727cc3c6ee993a09260fdcbe32f6154c7
parentc221b2f7708017593d572cf90560dc305bc3bf51
Add debug output about skipping files and functions

While trying to create skips for libstdc++, I found myself debugging GDB
quite a bit, mostly to find out what the exact function name to match
is.  I thought it would make sense to have this information as debug
output.

This patch adds "set debug skip on|off".

gdb/ChangeLog:

* skip.c (debug_skip): New variable.
(skiplist_entry::do_skip_file_p): Add debug output.
(skiplist_entry::do_skip_gfile_p): Likewise.
(skiplist_entry::skip_function_p): Likewise.
(_initialize_step_skip): Create debug command.
* NEWS: Mention set/show debug skip.

gdb/doc/ChangeLog:

* gdb.texinfo (Skipping Over Functions and Files): Document
set/show debug skip.
gdb/ChangeLog
gdb/NEWS
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/skip.c