diff options
Diffstat (limited to 'gdb/testsuite/gdb.python/py-prettyprint.exp')
-rw-r--r-- | gdb/testsuite/gdb.python/py-prettyprint.exp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.python/py-prettyprint.exp b/gdb/testsuite/gdb.python/py-prettyprint.exp index 491b52d..1096389 100644 --- a/gdb/testsuite/gdb.python/py-prettyprint.exp +++ b/gdb/testsuite/gdb.python/py-prettyprint.exp @@ -83,7 +83,10 @@ proc run_lang_tests {exefile lang} { gdb_py_test_silent_cmd "set print elements 200" "" 1 } - gdb_test "print ns2" ".error reading variable: Cannot access memory at address 0x0." + if { ![is_address_zero_readable] } { + gdb_test "print ns2" \ + ".error reading variable: Cannot access memory at address 0x0." + } gdb_test "print x" " = \"this is x\"" gdb_test "print cstring" " = \"const string\"" |