Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* turn off thread support?
@ 2004-01-12 23:06 Richard Henderson
  2004-01-12 23:12 ` Daniel Jacobowitz
  2004-01-19 20:20 ` Andrew Cagney
  0 siblings, 2 replies; 4+ messages in thread
From: Richard Henderson @ 2004-01-12 23:06 UTC (permalink / raw)
  To: gdb

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.


r~


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: turn off thread support?
  2004-01-12 23:06 turn off thread support? Richard Henderson
@ 2004-01-12 23:12 ` Daniel Jacobowitz
  2004-01-12 23:24   ` Richard Henderson
  2004-01-19 20:20 ` Andrew Cagney
  1 sibling, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2004-01-12 23:12 UTC (permalink / raw)
  To: Richard Henderson; +Cc: gdb

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: turn off thread support?
  2004-01-12 23:12 ` Daniel Jacobowitz
@ 2004-01-12 23:24   ` Richard Henderson
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 2004-01-12 23:24 UTC (permalink / raw)
  To: gdb

On Mon, Jan 12, 2004 at 06:12:36PM -0500, Daniel Jacobowitz wrote:
> Right now, neither easily.  But if you LD_PRELOAD a different
> libthread_db.so.1, then dlopen will use the one you gave it;

Good to know.  Of course, libthread_db hasn't actually been ported
to this target yet, so I have no confidence it'll work.

> 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.

That's an interesting idea...


r~


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: turn off thread support?
  2004-01-12 23:06 turn off thread support? Richard Henderson
  2004-01-12 23:12 ` Daniel Jacobowitz
@ 2004-01-19 20:20 ` Andrew Cagney
  1 sibling, 0 replies; 4+ messages in thread
From: Andrew Cagney @ 2004-01-19 20:20 UTC (permalink / raw)
  To: Richard Henderson; +Cc: gdb

> 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.

It's controlled by LD_LIBRARY_PATH, perhaphs try "ruining" that.

Andrew



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-01-19 20:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-12 23:06 turn off thread support? Richard Henderson
2004-01-12 23:12 ` Daniel Jacobowitz
2004-01-12 23:24   ` Richard Henderson
2004-01-19 20:20 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox