This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: remotely debugging muti-threaded applicaton did not work with gdb 6.3.50.20050725-cvs
- From: Daniel Jacobowitz <drow at false dot org>
- To: Michael Zhang <michael dot gd dot zhang at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Tue, 29 May 2007 14:18:14 -0400
- Subject: Re: remotely debugging muti-threaded applicaton did not work with gdb 6.3.50.20050725-cvs
- References: <3d234af30705290913u3d57fa8fp4ab53400027658a0@mail.gmail.com>
On Tue, May 29, 2007 at 10:13:57AM -0600, Michael Zhang wrote:
> Debugging problem:
>
> The gdb on the host can talk to the gdbserver on the target and I did
> not forget to set "solib-absolute-prefix". If I set breakpoints before
> the multiple threads are spawned, I could step through the code when
> the breakpoint was hit. However, once the application finished
> creating threads and if I stop the program to step through, it won't
> step and alway stuck in libc.so.6. The worst is all the threads are
> getting killed. And "info threads" never returns anything just
> reporting that the gdbserver could not get thread list.
If you do not have any luck with David's suggestions, please send a
more specific problem report afterwards. I need to see at least an
exact transcript of your session to guess what is wrong.
--
Daniel Jacobowitz
CodeSourcery