From: Daniel Jacobowitz Date: Fri, 13 Nov 2009 22:28:54 +0000 (+0000) Subject: gdb/testsuite/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a78817594dcee8b65f09b4e25a83a1f3c17978c2;p=binutils-gdb.git gdb/testsuite/ * gdb.cp/virtfunc.exp (do_tests): If runto_main fails, give up. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index f6a16af7ea4..68a21f4cf05 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2009-11-13 Daniel Jacobowitz + + * gdb.cp/virtfunc.exp (do_tests): If runto_main fails, give up. + 2009-11-13 Daniel Jacobowitz * gdb.base/freebpcmd.exp: Delete unused variable. Specify diff --git a/gdb/testsuite/gdb.cp/virtfunc.exp b/gdb/testsuite/gdb.cp/virtfunc.exp index b857f2543eb..d412bc998b1 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