This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix Linux attach to signalled/stopped processes
- From: Daniel Jacobowitz <drow at false dot org>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: Andreas Schwab <schwab at suse dot de>, Roland McGrath <roland at redhat dot com>, Doug Evans <dje at google dot com>, GDB Patches <gdb-patches at sourceware dot org>, mark dot kettenis at xs4all dot nl
- Date: Fri, 26 Sep 2008 09:00:09 -0400
- Subject: Re: [patch] Fix Linux attach to signalled/stopped processes
- References: <20080401223012.GA14076@host0.dyn.jankratochvil.net> <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> <je7i91zp8l.fsf@sykes.suse.de> <20080926035111.GA1197@host0.dyn.jankratochvil.net>
On Fri, Sep 26, 2008 at 05:51:11AM +0200, Jan Kratochvil wrote:
> 2008-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> * gdb.threads/attachstop-mt.exp: Note a real testcase name this
> testcase is derived from. Fix racy dependency on an expected PID
> number. No longer support the testcase on Linux kernel 2.4.x.
OK.
> +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.
--
Daniel Jacobowitz
CodeSourcery