diff options
author | Daniel Jacobowitz <dan@debian.org> | 2007-05-14 16:52:13 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2007-05-14 16:52:13 +0000 |
commit | 81d4de755deca785b3d278c5ee3d0b35a7906da2 (patch) | |
tree | 221c0cf63966e956eadfffca01fa02271845816c /gdb/testsuite/gdb.threads | |
parent | 32445dae17ad6bc15945d3b2d3c8acadfe99feb6 (diff) | |
download | gdb-81d4de755deca785b3d278c5ee3d0b35a7906da2.tar.gz |
* linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
as hexadecimal.
* gdb.threads/linux-dp.exp: Expect hexadecimal thread IDs.
* gdb.threads/print-threads.exp (test_all_threads): Allow
negative and hexadecimal thread IDs.
Diffstat (limited to 'gdb/testsuite/gdb.threads')
-rw-r--r-- | gdb/testsuite/gdb.threads/linux-dp.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/print-threads.exp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.threads/linux-dp.exp b/gdb/testsuite/gdb.threads/linux-dp.exp index 0edb4e23e21..0849406476e 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 \[-0-9\]+) \[^\n\]*\n" { + -re "^. +(\[0-9\]+ Thread 0x\[0-9a-f\]+) \[^\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 \[-0-9\]+) \[^\n\]*\n" { + -re "^. +(\[0-9\]+ Thread 0x\[0-9a-f\]+) \[^\n\]*\n" { set name $expect_out(1,string) for {set j 0} {$j != [llength $threads_before] } {incr j} { if {$name == [lindex $threads_before $j]} { diff --git a/gdb/testsuite/gdb.threads/print-threads.exp b/gdb/testsuite/gdb.threads/print-threads.exp index e766b5bbc33..068029ca92d 100644 --- a/gdb/testsuite/gdb.threads/print-threads.exp +++ b/gdb/testsuite/gdb.threads/print-threads.exp @@ -94,7 +94,7 @@ proc test_all_threads { name kill } { fail "all threads ran once ($name) (total $i threads ran)" } } - -re "Program received signal SIGTRAP.*(Thread \[0-9\]* \\(zombie\\)|0x00000000 in ).*$gdb_prompt $" { + -re "Program received signal SIGTRAP.*(Thread \[-0-9a-fx\]* \\(zombie\\)|0x00000000 in ).*$gdb_prompt $" { if { $kill == 1 } { kfail "gdb/1265" "Running threads ($name) (zombie thread)" } else { |