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]

How to load only selected libraries?


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


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