This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] py-prettyprint.exp: Add is_address_zero_readable check
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: gdb-patches <gdb-patches at sourceware dot org>
- Date: Mon, 22 Jun 2015 10:24:33 -0400
- Subject: Re: [PATCH] py-prettyprint.exp: Add is_address_zero_readable check
- Authentication-results: sourceware.org; auth=none
- References: <1433883156-31475-1-git-send-email-simon dot marchi at ericsson dot com>
On 15-06-09 04:52 PM, Simon Marchi wrote:
> gdb/testsuite/ChangeLog:
>
> * gdb.python/py-prettyprint.exp (run_lang_tests): Add
> is_address_zero_readable check.
> ---
> gdb/testsuite/gdb.python/py-prettyprint.exp | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/gdb/testsuite/gdb.python/py-prettyprint.exp b/gdb/testsuite/gdb.python/py-prettyprint.exp
> index 399f041..bbcee56 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" \
> - " = <error reading variable: Cannot create a lazy string with address 0x0, and a non-zero length.>"
> + if { ![is_address_zero_readable] } {
> + gdb_test "print estring3" \
> + " = <error reading variable: Cannot create a lazy string with address 0x0, and a non-zero length.>"
> + }
>
> gdb_test_no_output "python pp_ls_encoding = 'UTF-8'"
> gdb_test "print estring2" "\"embedded \", <incomplete sequence \\\\302>"
Ping.