This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: turn off thread support?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]