gdb/testsuite/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 15 May 2012 13:08:58 +0000 (13:08 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 15 May 2012 13:08:58 +0000 (13:08 +0000)
PR testsuite/12649
* gdb.base/dprintf.exp: Replace gdb_run_cmd by runto main.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/dprintf.exp

index 87882e1..cdaa386 100644 (file)
@@ -1,3 +1,8 @@
+2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       PR testsuite/12649
+       * gdb.base/dprintf.exp: Replace gdb_run_cmd by runto main.
+
 2012-05-14  Sergio Durigan Junior  <sergiodj@redhat.com>
 
        * gdb.base/stap-probe.exp (stap_test): Remove calls to
index 76f5fc5..1d4e8da 100644 (file)
@@ -24,7 +24,9 @@ set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
 set dp_location1 [gdb_get_line_number "set dprintf 1 here"]
 
 gdb_breakpoint "main"
-gdb_run_cmd
+if ![runto main] {
+    return -1
+}
 
 gdb_test "dprintf" "Format string required"