This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: turn off thread support?
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Richard Henderson <rth at twiddle dot net>
- Cc: gdb at gcc dot gnu dot org
- Date: Mon, 12 Jan 2004 18:12:36 -0500
- Subject: Re: turn off thread support?
- References: <20040112230631.GA32178@twiddle.net>
On Mon, Jan 12, 2004 at 03:06:31PM -0800, Richard Henderson wrote:
> Is there a way to temporarily turn off thread support in gdb?
> Also, is there a way to load an alternate thread_db library?
>
> I'm trying to debug libpthread itself, and keep getting told
> that the process no longer exists after hitting the SEGV.
Right now, neither easily. But if you LD_PRELOAD a different
libthread_db.so.1, then dlopen will use the one you gave it; and I
imagine that if you LD_PRELOAD a dummy library with that soname, then
the failed dlsym() calls will cause GDB to disable thread handling.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer