* gdb.asm/asm-source.exp: Check for memory read errors in
authorMark Kettenis <kettenis@gnu.org>
Sun, 1 Jun 2003 11:37:34 +0000 (11:37 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sun, 1 Jun 2003 11:37:34 +0000 (11:37 +0000)
disassembler test on *BSD too.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.asm/asm-source.exp

index 05a67473574049ccdc7845cb8038c27bef277ac8..db56e2191cd7de4899e4089eb476e9c8d2397187 100644 (file)
@@ -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
index ea6dd8b72970276f48d65f8c0388b9bf4a2ae01c..9fbe0da0f7e099cb484e4321a159af4cdf837c35 100644 (file)
@@ -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).