From: Simon Marchi Date: Thu, 25 Jun 2015 17:33:14 +0000 (-0400) Subject: py-prettyprint.exp: Add is_address_zero_readable check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bf7b9cd9aa4645119792e9d1689e0f014f43934f;p=binutils-gdb.git py-prettyprint.exp: Add is_address_zero_readable check gdb/testsuite/ChangeLog: * gdb.python/py-prettyprint.exp (run_lang_tests): Add is_address_zero_readable check. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c78dd295884..0db8bac9358 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-06-25 Simon Marchi + + * gdb.python/py-prettyprint.exp (run_lang_tests): Add + is_address_zero_readable check. + 2015-06-24 Peter Bergner * gdb.arch/powerpc-power.exp : Fixup test results. diff --git a/gdb/testsuite/gdb.python/py-prettyprint.exp b/gdb/testsuite/gdb.python/py-prettyprint.exp index 399f0418b52..bbcee563127 100644 --- a/gdb/testsuite/gdb.python/py-prettyprint.exp +++ b/gdb/testsuite/gdb.python/py-prettyprint.exp @@ -92,8 +92,10 @@ proc run_lang_tests {exefile lang} { gdb_test "print cstring" " = \"const string\"" gdb_test "print estring" " = \"embedded x\\\\201\\\\202\\\\203\\\\204\"" - gdb_test "print estring3" \ - " = " + if { ![is_address_zero_readable] } { + gdb_test "print estring3" \ + " = " + } gdb_test_no_output "python pp_ls_encoding = 'UTF-8'" gdb_test "print estring2" "\"embedded \", "