turn off thread support?

Daniel Jacobowitz drow@mvista.com
Mon Jan 12 23:12:00 GMT 2004


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



More information about the Gdb mailing list