This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch/rfc] Add internal-error recovery to gdb_expect_list
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 08 Feb 2004 23:07:58 -0500
- Subject: [patch/rfc] Add internal-error recovery to gdb_expect_list
FYI,
Appears to work, will commit in a few days.
Andrew
2004-02-08 Andrew Cagney <cagney@redhat.com>
* lib/gdb.exp (gdb_expect_list): Recover from internal-errors
using gdb_internal_error_resync.
Index: lib/gdb.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v
retrieving revision 1.46
diff -u -r1.46 gdb.exp
--- lib/gdb.exp 8 Feb 2004 03:56:15 -0000 1.46
+++ lib/gdb.exp 9 Feb 2004 04:00:59 -0000
@@ -1470,6 +1470,11 @@
fail "${test} (pattern ${index} + sentinel)"
set ok 0
}
+ -re ".*A problem internal to GDB has been detected" {
+ fail "${test} (GDB internal error)"
+ set ok 0
+ gdb_internal_error_resync
+ }
timeout {
fail "${test} (pattern ${index} + sentinel) (timeout)"
set ok 0
@@ -1487,6 +1492,11 @@
-re "${sentinel}" {
fail "${test} (pattern ${index})"
set ok 0
+ }
+ -re ".*A problem internal to GDB has been detected" {
+ fail "${test} (GDB internal error)"
+ set ok 0
+ gdb_internal_error_resync
}
timeout {
fail "${test} (pattern ${index}) (timeout)"