ppc: GDB terminates with signal SIGTRAP

Ajay Patel ajayp@kymasys.com
Fri Jul 22 00:02:00 GMT 2005


Hi,

I have a simple threaded program. (Program attached)
The program is compiled with STATIC linking.

When I setup a breakpoint in newly created thread
(setup breakpoint at run_thread1) and run this program
it terminates with 
"Program terminated with signal SIGTRAP, Trace/breakpoint trap." error.

I have tried this with gdb 6.3 (gdb_6.3-6 patch)
and gdb(6.3.0.0-1.21rh).

I have compiled the program with glibc 2.3.4 & gcc 3.4.3.
I have also compiled the program with glibc 2.3.5 and gcc 4.0.
(Kernel version 2.6.11)

But gdb always terminates.

If I compile the program with dynamic linking it does
not have any problem. 

Any help/Suggestion to debug this problem?

Thanks in advance for the help.

Ajay

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pthread_test.c
Type: application/octet-stream
Size: 1825 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb/attachments/20050722/aaf65ec3/attachment.obj>


More information about the Gdb mailing list