summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-01-18 16:35:11 +0000
committerMark Kettenis <kettenis@gnu.org>2004-01-18 16:35:11 +0000
commit64a7b2d333d542fd2a520ada16dc168e99734a90 (patch)
treeb214e30535bce9eb17414e9d04f91f2f2da8f019 /gdb/testsuite/gdb.base
parent9b1cfe5a11cd21175cbb001576873b3924f3a86d (diff)
downloadgdb-64a7b2d333d542fd2a520ada16dc168e99734a90.tar.gz
* gdb.base/gdb1476.exp: Accept alternat pattern for failed memory
read at address 0. This fixes PR testsuite/1504.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/gdb1476.exp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/gdb1476.exp b/gdb/testsuite/gdb.base/gdb1476.exp
index 2ac8074547d..b88b2de0652 100644
--- a/gdb/testsuite/gdb.base/gdb1476.exp
+++ b/gdb/testsuite/gdb.base/gdb1476.exp
@@ -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"