This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
gdbserver 6.0 (ppc) core dump on continue from gdb 6.0(x86), butnot with debug_thread=1
- From: Albert Ho <alberth at intellambda dot com>
- To: gdb at sources dot redhat dot com
- Date: Tue, 24 Feb 2004 17:16:24 -0800
- Subject: gdbserver 6.0 (ppc) core dump on continue from gdb 6.0(x86), butnot with debug_thread=1
More info on a question asked previously at
http://sources.redhat.com/ml/gdb/2004-02/msg00301.html
The test program involves pthread. The libpthread.so.0 is loaded
correctly on both host and target.
With debug_thread set to 1 in gdbserver/linux-low.c, a test program on
target ppc with 5 threads can be controlled from gdb on x86 host. With
the same setup, a bigger program still got SIGTRAP on pthread_create
(the real thing has 4 threads).
With debug_thread set to 0, the test program get a SIGTRAP on
pthread_create().
Any advice on how to debug from there?
Thanks
Albert