From: Jan Kratochvil Date: Wed, 13 Apr 2011 20:31:01 +0000 (+0000) Subject: gdb/testsuite/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2878145693aa0f42133e52e5378ac934bd4958cd;p=binutils-gdb.git gdb/testsuite/ * lib/gdb.exp (gdb_breakpoint): New case for a GDB internal error. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 4b4dddc0bf4..c33e0ba6e45 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2011-04-13 Jan Kratochvil + + * lib/gdb.exp (gdb_breakpoint): New case for a GDB internal error. + 2011-04-13 Thiago Jung Bauermann * gdb.base/watchpoint.exp (test_inaccessible_watchpoint): Don't diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index a512527d79f..761624f5c37 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -377,6 +377,11 @@ proc gdb_breakpoint { function args } { send_gdb "$pending_response\n" exp_continue } + -re "A problem internal to GDB has been detected" { + fail "setting breakpoint at $function in runto (GDB internal error)" + gdb_internal_error_resync + return 0 + } -re "$gdb_prompt $" { if { $no_message == 0 } { fail "setting breakpoint at $function"