Avoid loading shared object library symbols that match a regex

Mart Sõmermaa mrts.pydev@gmail.com
Fri Jan 7 18:58:00 GMT 2011


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



More information about the Gdb mailing list