From 01429c8e86c5091fe00c994c856e074c41f8218d Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Tue, 15 May 2012 13:08:58 +0000 Subject: [PATCH] gdb/testsuite/ PR testsuite/12649 * gdb.base/dprintf.exp: Replace gdb_run_cmd by runto main. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/dprintf.exp | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 87882e18910..cdaa3863d02 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-05-15 Jan Kratochvil + + PR testsuite/12649 + * gdb.base/dprintf.exp: Replace gdb_run_cmd by runto main. + 2012-05-14 Sergio Durigan Junior * 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 76f5fc5d36f..1d4e8dabc19 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" -- 2.30.2