This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdbserver and "terminated with signal SIGTRAP"
On Fri, Nov 30, 2007 at 05:58:14PM +0900, Atsushi Nemoto wrote:
> On Thu, 29 Nov 2007 23:55:02 +0900 (JST), Atsushi Nemoto <anemo@mba.ocn.ne.jp> wrote:
> > I confirmed that maybe_attach_thread() in thread-db.c did not call
> > linux_attach_lwp() on the second time. That was because
> > find_inferior_id() returned non NULL value. It seems
> > find_inferior_id() returned the first thread (which should be dead
> > before the second thread creation).
>
> Now I understand why find_inferior_id() misbehaves. The "id" is
> actually pthread_t and it might be recycled.
Right.
Have you tried HEAD? The new code I've added since 6.7.1 for thread
creation might help.
--
Daniel Jacobowitz
CodeSourcery