aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/sigbpt.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/sigbpt.exp')
-rw-r--r--gdb/testsuite/gdb.base/sigbpt.exp10
1 files changed, 3 insertions, 7 deletions
diff --git a/gdb/testsuite/gdb.base/sigbpt.exp b/gdb/testsuite/gdb.base/sigbpt.exp
index 142e739..b184e9e 100644
--- a/gdb/testsuite/gdb.base/sigbpt.exp
+++ b/gdb/testsuite/gdb.base/sigbpt.exp
@@ -55,13 +55,9 @@ if ![runto_main] then {
# especially on targets without an MMU. Don't run the tests in that
# case.
-gdb_test_multiple "x 0" "memory at address 0" {
- -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"
- return
- }
+if { [is_address_zero_readable] } {
+ untested "Memory at address 0 is possibly executable"
+ return
}
gdb_test "break keeper"