* [PATCH] py-prettyprint.exp: Add is_address_zero_readable check
@ 2015-06-09 20:52 Simon Marchi
2015-06-22 14:24 ` Simon Marchi
2015-06-24 10:30 ` Pedro Alves
0 siblings, 2 replies; 4+ messages in thread
From: Simon Marchi @ 2015-06-09 20:52 UTC (permalink / raw)
To: gdb-patches; +Cc: Simon Marchi
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>"
--
2.1.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] py-prettyprint.exp: Add is_address_zero_readable check
2015-06-09 20:52 [PATCH] py-prettyprint.exp: Add is_address_zero_readable check Simon Marchi
@ 2015-06-22 14:24 ` Simon Marchi
2015-06-24 10:30 ` Pedro Alves
1 sibling, 0 replies; 4+ messages in thread
From: Simon Marchi @ 2015-06-22 14:24 UTC (permalink / raw)
To: gdb-patches
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] py-prettyprint.exp: Add is_address_zero_readable check
2015-06-09 20:52 [PATCH] py-prettyprint.exp: Add is_address_zero_readable check Simon Marchi
2015-06-22 14:24 ` Simon Marchi
@ 2015-06-24 10:30 ` Pedro Alves
2015-06-25 17:34 ` Simon Marchi
1 sibling, 1 reply; 4+ messages in thread
From: Pedro Alves @ 2015-06-24 10:30 UTC (permalink / raw)
To: Simon Marchi, gdb-patches
On 06/09/2015 09:52 PM, Simon Marchi wrote:
> gdb/testsuite/ChangeLog:
>
> * gdb.python/py-prettyprint.exp (run_lang_tests): Add
> is_address_zero_readable check.
OK.
Thanks,
Pedro Alves
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] py-prettyprint.exp: Add is_address_zero_readable check
2015-06-24 10:30 ` Pedro Alves
@ 2015-06-25 17:34 ` Simon Marchi
0 siblings, 0 replies; 4+ messages in thread
From: Simon Marchi @ 2015-06-25 17:34 UTC (permalink / raw)
To: Pedro Alves, gdb-patches
On 15-06-24 06:30 AM, Pedro Alves wrote:
> On 06/09/2015 09:52 PM, Simon Marchi wrote:
>> gdb/testsuite/ChangeLog:
>>
>> * gdb.python/py-prettyprint.exp (run_lang_tests): Add
>> is_address_zero_readable check.
>
> OK.
>
> Thanks,
> Pedro Alves
Thanks, pushed.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-25 17:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-09 20:52 [PATCH] py-prettyprint.exp: Add is_address_zero_readable check Simon Marchi
2015-06-22 14:24 ` Simon Marchi
2015-06-24 10:30 ` Pedro Alves
2015-06-25 17:34 ` Simon Marchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).