diff options
author | Daniel Jacobowitz <drow@false.org> | 2009-11-13 22:28:54 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2009-11-13 22:28:54 +0000 |
commit | a78817594dcee8b65f09b4e25a83a1f3c17978c2 (patch) | |
tree | 28d8fb28e9f972c432105ed796d1618fca462003 | |
parent | 97a5b505d2ac545cb154968bb1ec32a734de1dbb (diff) | |
download | gdb-a78817594dcee8b65f09b4e25a83a1f3c17978c2.zip gdb-a78817594dcee8b65f09b4e25a83a1f3c17978c2.tar.gz gdb-a78817594dcee8b65f09b4e25a83a1f3c17978c2.tar.bz2 |
gdb/testsuite/
* gdb.cp/virtfunc.exp (do_tests): If runto_main fails, give up.
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/virtfunc.exp | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index f6a16af..68a21f4 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2009-11-13 Daniel Jacobowitz <dan@codesourcery.com> + * gdb.cp/virtfunc.exp (do_tests): If runto_main fails, give up. + +2009-11-13 Daniel Jacobowitz <dan@codesourcery.com> + * gdb.base/freebpcmd.exp: Delete unused variable. Specify srcfile when setting a breakpoint. diff --git a/gdb/testsuite/gdb.cp/virtfunc.exp b/gdb/testsuite/gdb.cp/virtfunc.exp index b857f25..d412bc9 100644 --- a/gdb/testsuite/gdb.cp/virtfunc.exp +++ b/gdb/testsuite/gdb.cp/virtfunc.exp @@ -247,7 +247,10 @@ proc do_tests {} { gdb_test "set language c++" "" "" gdb_test "set width 0" "" "" - runto_main + if ![runto_main] then { + perror "couldn't run to breakpoint" + return + } test_ptype_of_classes gdb_breakpoint test_calls |