* gdb.base/gdb1476.exp: Accept alternat pattern for failed memory
authorMark Kettenis <kettenis@gnu.org>
Sun, 18 Jan 2004 16:35:11 +0000 (16:35 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sun, 18 Jan 2004 16:35:11 +0000 (16:35 +0000)
read at address 0.  This fixes PR testsuite/1504.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/gdb1476.exp

index 971b3d3ca53caebbbb4b76a0bc30112d946387ba..d5fb5af1452d079c745162a94a39dc84ecec8e96 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-18  Mark Kettenis  <kettenis@gnu.org>
+
+       * gdb.base/gdb1476.exp: Accept alternat pattern for failed memory
+       read at address 0.  This fixes PR testsuite/1504.
+
 2004-01-18  Daniel Jacobowitz  <drow@mvista.com>
 
        * config/gdbserver.exp (gdbserver_gdb_load): Rename from gdb_load.
index 2ac8074547db0538f664a805e2ff67083094a48d..b88b2de06528dc9a90628bdedcf45a2f8e8ec24b 100644 (file)
@@ -56,6 +56,7 @@ if ![runto_main] then {
 
 send_gdb "x 0\n"
 gdb_expect {
+    -re "0x0:.*Cannot access memory at address 0x0.*$gdb_prompt $" { }
     -re "0x0:.*Error accessing memory address 0x0.*$gdb_prompt $" { }
     -re ".*$gdb_prompt $" {
        untested "Memory at address 0 is possibly executable"
@@ -68,4 +69,4 @@ gdb_test "continue" "Program received signal SIGSEGV.*" \
 
 gdb_test "backtrace 10" \
        "#0\[ \t\]*0x0* in .*\r\n#1\[ \t\]*$hex in x.*\r\n#2\[ \t\]*$hex in main.*" \
-       "backtrace from null pointer call"
\ No newline at end of file
+       "backtrace from null pointer call"
This page took 0.033344 seconds and 4 git commands to generate.