Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* glibc-2.3.3 / gdb/gdbserver 6.3: can't debug threads
@ 2005-02-23  4:32 Olivier Singla
  2005-02-23 16:00 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Olivier Singla @ 2005-02-23  4:32 UTC (permalink / raw)
  To: gdb

Hi,

I am unsuccessful to debug threads with gdb (fc3) and gdbserver (powerpc 
target).

Here is my .gdbinit:
set auto-solib-add 1
set solib-absolute-prefix 
/opt/crosstool/powerpc-linux/gcc-3.4.1-glibc-2.3.3/powerpc-linux
target remote 10.128.128.251:9000
set confirm off
sym ./test -readnow
handle SIG32 nostop noprint
break main
shared
cont
shared
info sharedlibrary

Problem is that I can't see the threads while debugging, but only the 
main thread.
When I try to put a breakpoint to put thread function I then have:
Program received signal SIGTRAP, Trace/breakpoint trap.

Also, I always have:
No shared libraries loaded at this time.

If I debug the same program compiled for x86 on the PC, I can see
all the shared libraries that gdb has loaded. For some reason, that's
failing with gdbserver.

When I run gdb with strace, I don't see that gdb try to load 
libthread_db.so,
as I think it should.

I have tried with versions 5.3, 6,2 and 6.3 of gdb/gdbserver.

Any idea what is wrong ?

Thanks in advance,
Olivier


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

end of thread, other threads:[~2005-02-23  4:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-23  4:32 glibc-2.3.3 / gdb/gdbserver 6.3: can't debug threads Olivier Singla
2005-02-23 16:00 ` Daniel Jacobowitz

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