aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-05-15 13:08:58 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-05-15 13:08:58 +0000
commit01429c8e86c5091fe00c994c856e074c41f8218d (patch)
tree7d02485073e8ff7d5732ce93e10d9d2fc3a9eeb6 /gdb
parent6927f98292aaa6f7fcb3152d5d902758538e626c (diff)
downloadgdb-01429c8e86c5091fe00c994c856e074c41f8218d.zip
gdb-01429c8e86c5091fe00c994c856e074c41f8218d.tar.gz
gdb-01429c8e86c5091fe00c994c856e074c41f8218d.tar.bz2
gdb/testsuite/
PR testsuite/12649 * gdb.base/dprintf.exp: Replace gdb_run_cmd by runto main.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/dprintf.exp4
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 87882e1..cdaa386 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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
diff --git a/gdb/testsuite/gdb.base/dprintf.exp b/gdb/testsuite/gdb.base/dprintf.exp
index 76f5fc5..1d4e8da 100644
--- a/gdb/testsuite/gdb.base/dprintf.exp
+++ b/gdb/testsuite/gdb.base/dprintf.exp
@@ -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"