How to load only selected libraries?

Srinath Avadhanula srinathava@gmail.com
Sun Jan 20 22:37:00 GMT 2008


Hi,

Is it possible to have GDB only load selected libraries? I know about doing

set auto-solib-add off

and then following it up with

sha foolib

However, what I would really like is something like

set auto-solib-regexp <regexp>

And then have GDB only (automatically) load libraries which match the
<regexp>. The problem with 'sha <regexp>' of course is that its not
automatic. I have to interrupt the program after ensuring that the
library is loaded.

I am using gdb-6.9-40-debian. Is such a feature available in a newer version?

Thanks,
Srinath



More information about the Gdb mailing list