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]

ppc: GDB terminates with signal SIGTRAP


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

Attachment: pthread_test.c
Description: Binary data


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