diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-05-14 16:56:07 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-05-14 16:56:07 +0000 |
commit | af2cbe8c986b2616498bba4101b133227db09496 (patch) | |
tree | 3b249522d68dcce49a3bee6087465bd277db8c22 /gdb/testsuite | |
parent | 027c0295d85769f2bcf07218d4296644f129cfc5 (diff) | |
download | gdb-af2cbe8c986b2616498bba4101b133227db09496.zip gdb-af2cbe8c986b2616498bba4101b133227db09496.tar.gz gdb-af2cbe8c986b2616498bba4101b133227db09496.tar.bz2 |
* gdb.threads/linux-dp.exp: Allow non-hexadecimal IDs also.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/linux-dp.exp | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index f4f6305..90073e4 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 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. * gdb.threads/print-threads.exp (test_all_threads): Allow negative and hexadecimal thread IDs. diff --git a/gdb/testsuite/gdb.threads/linux-dp.exp b/gdb/testsuite/gdb.threads/linux-dp.exp index 0849406..6bb5cf9 100644 --- a/gdb/testsuite/gdb.threads/linux-dp.exp +++ b/gdb/testsuite/gdb.threads/linux-dp.exp @@ -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]} { |