OSDN Git Service

* 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 05a6747..db56e21 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 ea6dd8b..9fbe0da 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).