2004-10-11 Orjan Friberg <orjanf@axis.com>
authorOrjan Friberg <orjanf@axis.com>
Mon, 11 Oct 2004 12:22:33 +0000 (12:22 +0000)
committerOrjan Friberg <orjanf@axis.com>
Mon, 11 Oct 2004 12:22:33 +0000 (12:22 +0000)
* gdb.threads/bp_in_thread.exp: Use runto_main and "continue" instead
of "run", since the latter doesn't work with remote targets.  Adjust
the breakpoint numbering accordingly.
* gdb.threads/pthread_cond_wait.exp: Ditto.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/bp_in_thread.exp
gdb/testsuite/gdb.threads/pthread_cond_wait.exp

index f0dfb020a387b937d055ab4de520d9af2fffa97f..c26f30c79b90193696fa589feb3b3ea62b776c1d 100644 (file)
@@ -1,3 +1,10 @@
+2004-10-11  Orjan Friberg  <orjanf@axis.com>
+
+       * gdb.threads/bp_in_thread.exp: Use runto_main and "continue" instead 
+       of "run", since the latter doesn't work with remote targets.  Adjust
+       the breakpoint numbering accordingly.
+       * gdb.threads/pthread_cond_wait.exp: Ditto.
+
 2004-10-08  Michael Chastain  <mec.gnu@mindspring.com>
 
        * gdb.base/overlays.exp: Update copyright years.
index e9dfadb9b1a2d6d5ab22a9676212c70a91e755b3..91c328332dd4c0f3b6f087d062b40a0ea83b6b74 100644 (file)
@@ -35,15 +35,16 @@ gdb_exit
 gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load ${binfile}
+runto_main
 
 gdb_test "break noreturn" \
-         "Breakpoint 1 at .*: file .*${srcfile}, line .*" \
+         "Breakpoint 2 at .*: file .*${srcfile}, line .*" \
          "breakpoint on noreturn"
 
 # Run the program and make sure GDB reports that we stopped after
 # hitting breakpoint 1 in noreturn().
 
-gdb_test "run" \
-         ".*Breakpoint 1, noreturn ().*" \
+gdb_test "continue" \
+         ".*Breakpoint 2, noreturn ().*" \
          "run to noreturn"
 
index 72ae03a0cd9f095787ff56e86ea59ea3e44c0f3a..91b695f32e03714d3e8c34f29bac696ec3e5af03 100644 (file)
@@ -36,13 +36,14 @@ gdb_exit
 gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load ${binfile}
+runto_main
 
 gdb_test "break break_me" \
-    "Breakpoint 1 at .*: file .*${srcfile}, line .*" \
+    "Breakpoint 2 at .*: file .*${srcfile}, line .*" \
          "breakpoint on break_me"
 
-gdb_test "run" \
-         ".*Breakpoint 1, break_me ().*" \
+gdb_test "continue" \
+         ".*Breakpoint 2, break_me ().*" \
          "run to break_me"
 
 #