This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: auto-solib-add when attaching to inferior
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Kris Warkentin <kewarken at qnx dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 16 Apr 2003 15:04:23 -0400
- Subject: Re: auto-solib-add when attaching to inferior
- References: <020001c3044b$31fba6e0$2a00a8c0@dash>
On Wed, Apr 16, 2003 at 03:05:46PM -0400, Kris Warkentin wrote:
> When I run a remote process using our QNX remote protocol, I get a solib
> breakpoint set properly and from then on, if solibs are loaded, their
> symbols automatically get added (auto-solib-add is on by default). If,
> however, I attach to the process, even if auto-solib-add is on, I still have
> to go 'shared' to get them to load. If I 'maint info breakpoints' on the
> attached process, I see that there isn't a shlib-events breakpoint set on
> the attached process so I assume either enable_break() isn't getting called
> or is failing.
>
> I'm still building my debug gdb to test but I'm hoping someone will tell me,
> "Oh, when you attach you should always call such-and-such function" and I
> can just add it to our back end code.
Search for SOLIB in remote.c and see if that helps.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer