This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Avoid loading shared object library symbols that match a regex


Hello,

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

http://blogs.msdn.com/b/andypennell/archive/2004/02/06/69004.aspx

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.)

Thoughts?

Best regards,
Mart Sõmermaa


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]