This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
How to load only selected libraries?
- From: "Srinath Avadhanula" <srinathava at gmail dot com>
- To: gdb at sourceware dot org
- Date: Sun, 20 Jan 2008 17:37:32 -0500
- Subject: 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