gdb/testsuite/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 13 Apr 2011 20:31:01 +0000 (20:31 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 13 Apr 2011 20:31:01 +0000 (20:31 +0000)
* lib/gdb.exp (gdb_breakpoint): New case for a GDB internal error.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp

index 4b4dddc0bf429414f69661010836d4cc510ab89c..c33e0ba6e4570faf0e0b4443caaad001ad5136e9 100644 (file)
@@ -1,3 +1,7 @@
+2011-04-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * lib/gdb.exp (gdb_breakpoint): New case for a GDB internal error.
+
 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
 
        * gdb.base/watchpoint.exp (test_inaccessible_watchpoint): Don't
index a512527d79f02e28b2d325d0f75a541e0cb8404f..761624f5c379b70549e6edf2f04c97070eb79146 100644 (file)
@@ -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"