This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix Linux attach to signalled/stopped processes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]