This is the mail archive of the
mailing list for the GDB project.
Avoid loading shared object library symbols that match a regex
- From: Mart Sõmermaa <mrts dot pydev at gmail dot com>
- To: gdb at sourceware dot org
- Date: Fri, 7 Jan 2011 20:58:05 +0200
- Subject: Avoid loading shared object library symbols that match a regex
quite often, one needs to avoid stepping into system libraries while debugging.
E.g. the Visual Studio debugger can be controlled with "NoStepInto"
statements for that purpose, see
Taking that into account, I propose that the following functionality
to be added to gdb:
set auto-solib-ignore regex
set auto-solib-exclude regex
Do not load shared object library symbols for files matching the given
Unix regular expression when `auto-solib-add` is on (in essence helping
you to avoid stepping into these libraries and to avoid loading large
amounts of unneccessary debug information).
This is a quick path to meeting the common need.
A comprehensive solution would probably support a list of no-step-into
rules like VS does.
(But this would be orthogonal to the proposal, as avoiding loading unnecessary
debug symbols is helpful anyway.)