From: Jan Kratochvil Date: Tue, 15 May 2012 13:08:58 +0000 (+0000) Subject: gdb/testsuite/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=01429c8e86c5091fe00c994c856e074c41f8218d;p=binutils-gdb.git gdb/testsuite/ PR testsuite/12649 * gdb.base/dprintf.exp: Replace gdb_run_cmd by runto main. --- 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"