From: Tom Tromey Date: Wed, 2 Sep 2009 17:03:39 +0000 (+0000) Subject: * gdb.dwarf2/callframecfa.exp: Use gdb_continue_to_breakpoint. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=787d21e15afa15343697bfb9a168d15266ff0e92;p=binutils-gdb.git * gdb.dwarf2/callframecfa.exp: Use gdb_continue_to_breakpoint. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 0a2c7046655..8a34ca66603 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2009-09-02 Tom Tromey + + * gdb.dwarf2/callframecfa.exp: Use gdb_continue_to_breakpoint. + 2009-09-02 Tom Tromey * gdb.dwarf2/callframecfa.exp: New file. diff --git a/gdb/testsuite/gdb.dwarf2/callframecfa.exp b/gdb/testsuite/gdb.dwarf2/callframecfa.exp index 00d67fcee84..19a47461783 100644 --- a/gdb/testsuite/gdb.dwarf2/callframecfa.exp +++ b/gdb/testsuite/gdb.dwarf2/callframecfa.exp @@ -44,8 +44,12 @@ gdb_start gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} -gdb_test "break *func" "Breakpoint 1.*" "set breakpoint for call-frame-cfa" -gdb_test "run" "" "run for call-frame-cfa" +if ![runto_main] { + return -1 +} + +gdb_test "break *func" "Breakpoint 2.*" "set breakpoint for call-frame-cfa" +gdb_continue_to_breakpoint "continue to breakpoint for call-frame-cfa" gdb_test "display arg" "arg = 77" "set display for call-frame-cfa" # We know how many instructions are in the function. Note that we