* gdb.base/watchpoints.exp: Respect gdb,no_hardware_watchpoints
authorUlrich Weigand <uweigand@de.ibm.com>
Tue, 29 Sep 2009 13:02:58 +0000 (13:02 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Tue, 29 Sep 2009 13:02:58 +0000 (13:02 +0000)
target_info setting.

* gdb.threads/thread-specific.exp (get_thread_list): Support targets
that detect new threads during "info threads".

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/watchpoints.exp
gdb/testsuite/gdb.threads/thread-specific.exp

index 407832e808c4cb7afc8b8e3d6c8f4cd6471c579d..e83c0fc9eb2ec80c833cede8cac73300b1fec525 100644 (file)
@@ -1,3 +1,11 @@
+2009-09-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * gdb.base/watchpoints.exp: Respect gdb,no_hardware_watchpoints
+       target_info setting.
+
+       * gdb.threads/thread-specific.exp (get_thread_list): Support targets
+       that detect new threads during "info threads".
+
 2009-09-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
 
        * gdb.threads/manythreads.c (main): Increase thread stack size
index 7abe14bb874bf41caa4411fc1c37c74559839d8c..616de139d949e2c2b4d72028749dff489177373e 100644 (file)
@@ -45,6 +45,11 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load $binfile
 
+    # Disable hardware watchpoints if necessary.
+    if [target_info exists gdb,no_hardware_watchpoints] {
+        gdb_test "set can-use-hw-watchpoints 0" "" ""
+    }
+
     runto_main
     gdb_test "watch ival1" "" ""
     gdb_test "watch ival3" "" ""
index 775940b73e225a821ca4bbd3a303291c058cf251..30e1a43ae2817feeccc62d9db2e526b30de0e6f0 100644 (file)
@@ -43,6 +43,9 @@ proc get_thread_list { } {
     -re "info threads\r\n" {
       exp_continue
     }
+    -re "New Thread \[^\n\]*\n" {
+      exp_continue
+    }
     -re "^\\*  *(\[0-9\]*) Thread \[^\n\]*main\[^\n\]*\n" {
       set thr_list "$expect_out(1,string) $thr_list"
       exp_continue