2004-02-10 Andrew Cagney <cagney@redhat.com>

* lib/gdb.exp (gdb_expect_list): Recover from internal-errors
	using gdb_internal_error_resync.
This commit is contained in:
Andrew Cagney 2004-02-10 21:00:15 +00:00
parent 8e08f1091d
commit 5c5455dc1e
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-02-10 Andrew Cagney <cagney@redhat.com>
* lib/gdb.exp (gdb_expect_list): Recover from internal-errors
using gdb_internal_error_resync.
2004-02-09 Daniel Jacobowitz <drow@mvista.com>
* gdb.threads/thread-specific.exp: Stop early if no threads are

View File

@ -1470,6 +1470,11 @@ proc gdb_expect_list {test sentinel list} {
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
@ -1488,6 +1493,11 @@ proc gdb_expect_list {test sentinel list} {
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)"
set ok 0