From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15981 invoked by alias); 30 Nov 2007 15:14:05 -0000 Received: (qmail 15972 invoked by uid 22791); 30 Nov 2007 15:14:04 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 30 Nov 2007 15:13:56 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id A558E98248; Fri, 30 Nov 2007 15:13:54 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 7F6B298245; Fri, 30 Nov 2007 15:13:54 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1Iy7Yv-0001ry-KC; Fri, 30 Nov 2007 10:13:53 -0500 Date: Fri, 30 Nov 2007 15:14:00 -0000 From: Daniel Jacobowitz To: Atsushi Nemoto Cc: gdb@sourceware.org Subject: Re: gdbserver and "terminated with signal SIGTRAP" Message-ID: <20071130151353.GA6894@caradoc.them.org> Mail-Followup-To: Atsushi Nemoto , gdb@sourceware.org References: <20071129.235502.95065374.anemo@mba.ocn.ne.jp> <20071130.175814.18313162.nemoto@toshiba-tops.co.jp> <20071130144738.GB5548@caradoc.them.org> <20071201.000004.108739512.anemo@mba.ocn.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071201.000004.108739512.anemo@mba.ocn.ne.jp> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-11/txt/msg00293.txt.bz2 On Sat, Dec 01, 2007 at 12:00:04AM +0900, Atsushi Nemoto wrote: > On Fri, 30 Nov 2007 09:47:38 -0500, Daniel Jacobowitz wrote: > > Have you tried HEAD? The new code I've added since 6.7.1 for thread > > creation might help. > > Yes. It seems work but still I cannot see exactly when/how. > > http://sourceware.org/ml/gdb-patches/2007-10/msg00547.html ("[commit] > gdbserver support for debugging without libthread_db") is the commit? Yes. We now attach to new threads based on kernel events, and we no longer track things based on the pthread_t ID. Those two together eliminate this race. -- Daniel Jacobowitz CodeSourcery