* gdb.threads/linux-dp.exp: Allow non-hexadecimal IDs also.
authorDaniel Jacobowitz <drow@false.org>
Mon, 14 May 2007 16:56:07 +0000 (16:56 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 14 May 2007 16:56:07 +0000 (16:56 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/linux-dp.exp

index f4f6305e3dd8aec7c593275d1fbd4d86f1b7da12..90073e45483b85e91a5de10a48e0450c3164b423 100644 (file)
@@ -1,3 +1,7 @@
+2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * gdb.threads/linux-dp.exp: Allow non-hexadecimal IDs also.
+
 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * gdb.threads/linux-dp.exp: Expect hexadecimal thread IDs.
index 0849406476e5d9c06f61fd4a280cf0291bc0e632..6bb5cf9c5200e8d6dca98b28b2b29dc79ab8f96a 100644 (file)
@@ -74,7 +74,7 @@ for {set i 0} {$i < 5} {incr i} {
        -re "info threads\r\n" {
            exp_continue
        }
-       -re "^. +(\[0-9\]+ Thread 0x\[0-9a-f\]+) \[^\n\]*\n" {
+       -re "^. +(\[0-9\]+ Thread \[-0-9a-fx\]+) \[^\n\]*\n" {
            verbose -log "found thread $expect_out(1,string)" 2
            lappend threads_before $expect_out(1,string)
            exp_continue
@@ -147,7 +147,7 @@ for {set i 0} {$i < 5} {incr i} {
        -re "info threads\r\n" {
            exp_continue
        }
-       -re "^. +(\[0-9\]+ Thread 0x\[0-9a-f\]+) \[^\n\]*\n" {
+       -re "^. +(\[0-9\]+ Thread \[-0-9a-fx\]+) \[^\n\]*\n" {
            set name $expect_out(1,string)
            for {set j 0} {$j != [llength $threads_before] } {incr j} {
                if {$name == [lindex $threads_before $j]} {