gdb/2248: Threads terminated by SIGTRAP in gdbserver (powerpc)
Wed Apr 4 15:28:00 GMT 2007

>Number:         2248
>Category:       gdb
>Synopsis:       Threads terminated by SIGTRAP in gdbserver (powerpc)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 04 16:28:01 BST 2007
>Release:        unknown-1.0
Host: Debian Etch, 2.6.18
Target: PowerPC MPC8349, 2.6.20
I try to to do some remote debugging on my ppc platform.
I downloaded lates gdb sources (release 6.6) and cross-compiled gdbserver for powerpc-wrs-linux-gnu. I've of course also compiled a gdb for my target.
Everything's fien for apps that are not multi-threaded.
But for multi-threaded (NPTL) apps, there is no way to stop in a specific thread. In fact gdb always sees only one thread (the main one), thread info reports only one thread.
If I set a breakpoint in code executed by a thread, gdbserver reports:
Child terminated with signal = 5

Notice that I am able to do multi-thread debug on my host locally (without gdbserver).
Any litlle app with a pthread_create() call will do it!


More information about the Gdb-prs mailing list