This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: thread-debuging with gdbserver on ARM/NPTL
- From: Daniel Jacobowitz <drow at false dot org>
- To: Benedikt Spranger <b dot spranger at linutronix dot de>
- Cc: gdb at sourceware dot org
- Date: Tue, 24 Oct 2006 14:34:04 -0400
- Subject: Re: thread-debuging with gdbserver on ARM/NPTL
- References: <20061024202933.1d5129b9.b.spranger@linutronix.de>
On Tue, Oct 24, 2006 at 08:29:33PM +0200, Benedikt Spranger wrote:
> Attaching gdb to gdbserver, set the above breakpoints and issue "cont",
> then the program stops at breakpoint BP1. BP2 is never reached, although
> the thread is visible via "ps" on the target system. The thread is stuck
> in sys_futex and not as expected in the ptrace breakpoint trap. Also gdb
> does not show that the thread was created.
>
> This can be reproduced with glibc 2.3.6 -> 2.5, kernel 2.6.14 ->
> 2.6.19-rc2, gcc 3.4 -> 4.1.1 and binutils up to cvs-latest.
Well, it works just fine for me, so you may want to investigate your
setup. Have you set solib-absolute-prefix, the most frequent problem?
Check if "info shared" and "info threads" show sensible output.
--
Daniel Jacobowitz
CodeSourcery