This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: linux, threads and auto-solib-add
- From: Kevin Buettner <kevinb at redhat dot com>
- To: "Martin M. Hunt" <hunt at redhat dot com>, gdb at sources dot redhat dot com
- Date: Wed, 29 Jan 2003 17:50:11 -0700
- Subject: Re: linux, threads and auto-solib-add
- References: <1043886256.1217.64.camel@Dragon>
On Jan 29, 4:24pm, Martin M. Hunt wrote:
> I am trying to answer a question about debugging threaded applications
> when auto-solib-add is off. You cannot debug pthreads programs without
> first loading the symbols for libpthread.
>
> Given that, does it make sense to modify solid_add to always read the
> symbols for libpthread, if it is in the library list?
I'm not in favor of this.
> Or is expected the user knows enough to always immediately do "shar
> libpthread" after starting debugging a threaded program?
IMO, when the user disables auto-solib-add, then the user is
responsible for "hand" loading the shared libraries needed for
debugging the program.
Kevin