diff options
author | Tom Tromey <tromey@redhat.com> | 2009-09-02 17:03:39 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2009-09-02 17:03:39 +0000 |
commit | 787d21e15afa15343697bfb9a168d15266ff0e92 (patch) | |
tree | 1f8b690f8eb812abba8cc8db6544ca40ac0cdde6 /gdb | |
parent | fdcac5af29801ad6c10fe80a2f1277610f988229 (diff) | |
download | gdb-787d21e15afa15343697bfb9a168d15266ff0e92.zip gdb-787d21e15afa15343697bfb9a168d15266ff0e92.tar.gz gdb-787d21e15afa15343697bfb9a168d15266ff0e92.tar.bz2 |
* gdb.dwarf2/callframecfa.exp: Use gdb_continue_to_breakpoint.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/callframecfa.exp | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 0a2c704..8a34ca6 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2009-09-02 Tom Tromey <tromey@redhat.com> + * gdb.dwarf2/callframecfa.exp: Use gdb_continue_to_breakpoint. + +2009-09-02 Tom Tromey <tromey@redhat.com> + * gdb.dwarf2/callframecfa.exp: New file. * gdb.dwarf2/callframecfa.S: New file. diff --git a/gdb/testsuite/gdb.dwarf2/callframecfa.exp b/gdb/testsuite/gdb.dwarf2/callframecfa.exp index 00d67fc..19a4746 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 |