From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1720 invoked by alias); 28 Sep 2008 11:43:36 -0000 Received: (qmail 1710 invoked by uid 22791); 28 Sep 2008 11:43:35 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 28 Sep 2008 11:43:00 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m8SBgvoK028939; Sun, 28 Sep 2008 07:42:57 -0400 Received: from pobox.stuttgart.redhat.com (pobox.stuttgart.redhat.com [172.16.2.10]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m8SBgsS6025639; Sun, 28 Sep 2008 07:42:55 -0400 Received: from host0.dyn.jankratochvil.net (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.stuttgart.redhat.com (8.13.1/8.13.1) with ESMTP id m8SBgqpE015392; Sun, 28 Sep 2008 07:42:53 -0400 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.3/8.14.2) with ESMTP id m8SBgpVl008066; Sun, 28 Sep 2008 13:42:51 +0200 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.3/8.14.2/Submit) id m8SBgnKh008056; Sun, 28 Sep 2008 13:42:49 +0200 Date: Sun, 28 Sep 2008 11:43:00 -0000 From: Jan Kratochvil To: Daniel Jacobowitz Cc: Andreas Schwab , Roland McGrath , Doug Evans , GDB Patches , mark.kettenis@xs4all.nl Subject: Re: [patch] Fix Linux attach to signalled/stopped processes Message-ID: <20080928114249.GA7881@host0.dyn.jankratochvil.net> References: <20080410153735.GD21662@caradoc.them.org> <20080410154839.GA5375@host0.dyn.jankratochvil.net> <20080410231205.2DBFD26F992@magilla.localdomain> <20080411161824.GA4183@host0.dyn.jankratochvil.net> <20080412000155.7F07A26FA5E@magilla.localdomain> <20080414143448.GA32227@caradoc.them.org> <20080414150919.GB32227@caradoc.them.org> <20080926035111.GA1197@host0.dyn.jankratochvil.net> <20080926130009.GD21287@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080926130009.GD21287@caradoc.them.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-09/txt/msg00547.txt.bz2 [committed] On Fri, 26 Sep 2008 15:00:09 +0200, Daniel Jacobowitz wrote: > > +set tids [lsort -integer [split $tids]] > > +if {[llength $tids] != 3 || [lindex $tids 0] != $testpid} { > > + verbose -log "Invalid TIDs <$tids> for PID $testpid" > > + fail "Invalid TIDs found" > > + remote_exec build "kill -9 ${testpid}" > > + return -1 > > +} > > +set testpid2 [lindex $tids 2] > > I think this will FAIL on LinuxThreads but if I ever run that > configuration again, I'll fix it. I did not expect LinuxThreads would be still in use with kernel-2.6+. kernel-2.4 is not supported by the testcase due to missing /proc/PID/task/ . Assuming there would be just one more task (thread) listed. Regards, Jan