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 87882e1891076575e4f8db8884d2d884c057c40c..cdaa3863d0205563516f44bb3ee448d8f9b55950 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 76f5fc5d36f07c4dfbfc91ae02e72c32f95807f3..1d4e8dabc19a2d3c1c37ad98a23c0c41dea0a584 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"
 
This page took 0.038843 seconds and 4 git commands to generate.