[PATCH] Fix check for memory read errors in asm-source.exp
Mark Kettenis
kettenis@chello.nl
Sun Jun 1 11:37:00 GMT 2003
This makes me see the failure that everybody else was seeing on
FreeBSD too.
Committed.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* gdb.asm/asm-source.exp: Check for memory read errors in
disassembler test on *BSD too.
Index: gdb.asm/asm-source.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/asm-source.exp,v
retrieving revision 1.36
diff -u -p -r1.36 asm-source.exp
--- gdb.asm/asm-source.exp 1 Jun 2003 07:16:05 -0000 1.36
+++ gdb.asm/asm-source.exp 1 Jun 2003 11:35:21 -0000
@@ -319,7 +319,7 @@ proc test_dis { command var } {
global gdb_prompt
send_gdb "${command}\n"
gdb_expect {
- -re "${var}.*:.*Cannot access" {
+ -re "${var}.*:.*(Cannot access|Bad address)" {
# The "disassembler" was only accessing the local
# executable and that would cause attempts to disassemble
# variables to fail (memory not valid).
More information about the Gdb-patches
mailing list