This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: add table headers to "info thread" output
Tested on ppc-linux and checked in as obvious.
Andreas.
2010-12-25 Andreas Schwab <schwab@linux-m68k.org>
* gdb.threads/thread-specific.exp (get_thread_list): Update.
* gdb.threads/execl.exp: Update.
Index: gdb.threads/execl.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/execl.exp,v
retrieving revision 1.4
diff -u -a -p -r1.4 execl.exp
--- gdb.threads/execl.exp 21 Dec 2010 19:10:15 -0000 1.4
+++ gdb.threads/execl.exp 25 Dec 2010 17:52:30 -0000
@@ -57,11 +57,11 @@ gdb_test "info threads" ".*" "info threa
set test "info threads after exec"
gdb_test_multiple "info threads" "$test" {
- -re "2 Thread .*$gdb_prompt $" {
+ -re "2 *Thread .*$gdb_prompt $" {
# Old threads left behind.
fail "$test"
}
- -re "4 Thread .*$gdb_prompt $" {
+ -re "4 *Thread .*$gdb_prompt $" {
# New threads registered.
fail "$test"
}
Index: gdb.threads/thread-specific.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/thread-specific.exp,v
retrieving revision 1.13
diff -u -a -p -r1.13 thread-specific.exp
--- gdb.threads/thread-specific.exp 18 Jun 2010 17:44:40 -0000 1.13
+++ gdb.threads/thread-specific.exp 25 Dec 2010 17:52:30 -0000
@@ -44,11 +44,14 @@ proc get_thread_list { } {
-re "New Thread \[^\n\]*\n" {
exp_continue
}
- -re "^\\* *(\[0-9\]*) Thread \[^\n\]*main\[^\n\]*\n" {
+ -re "^ *Id *Target Id\[^\n\]*\n" {
+ exp_continue
+ }
+ -re "^\\* *(\[0-9\]*) *Thread \[^\n\]*main\[^\n\]*\n" {
set thr_list "$expect_out(1,string) $thr_list"
exp_continue
}
- -re "^ *(\[0-9\]*) Thread \[^\n\]*\n" {
+ -re "^ *(\[0-9\]*) *Thread \[^\n\]*\n" {
lappend thr_list $expect_out(1,string)
exp_continue
}
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."