summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-06-01 11:37:34 +0000
committerMark Kettenis <kettenis@gnu.org>2003-06-01 11:37:34 +0000
commit5b570b75fb5c89f621b0dafcd62025260bd179f0 (patch)
tree8f38c1255075401eae12f2591966d1660b03c886
parent4b01d67d069bd807f36db8202d4f04775cc44e76 (diff)
downloadgdb-5b570b75fb5c89f621b0dafcd62025260bd179f0.tar.gz
* gdb.asm/asm-source.exp: Check for memory read errors in
disassembler test on *BSD too.
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.asm/asm-source.exp2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 05a67473574..db56e2191cd 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2003-06-01 Mark Kettenis <kettenis@gnu.org>
+
+ * gdb.asm/asm-source.exp: Check for memory read errors in
+ disassembler test on *BSD too.
+
2003-06-01 Richard Henderson <rth@redhat.com>
* gdb.asm/alpha.inc (gdbasm_enter): Use numeric register names
diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp
index ea6dd8b7297..9fbe0da0f7e 100644
--- a/gdb/testsuite/gdb.asm/asm-source.exp
+++ b/gdb/testsuite/gdb.asm/asm-source.exp
@@ -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).