This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Allow a pretty-printer without a to_string method
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: Tom Tromey <tom at tromey dot com>, <gdb-patches at sourceware dot org>
- Date: Sun, 9 Sep 2018 00:09:19 +0100
- Subject: Re: [PATCH] Allow a pretty-printer without a to_string method
- References: <20180908204210.22927-1-tom@tromey.com>
> diff --git a/gdb/testsuite/gdb.python/py-prettyprint.exp b/gdb/testsuite/gdb.python/py-prettyprint.exp
> index 2671cb8471b..fe7774fa886 100644
> --- a/gdb/testsuite/gdb.python/py-prettyprint.exp
> +++ b/gdb/testsuite/gdb.python/py-prettyprint.exp
> @@ -127,6 +127,8 @@ proc run_lang_tests {exefile lang} {
> gdb_test "print (int_type) an_int_type2" " = type=int_type, val=2"
> gdb_test "print (int_type2) an_int_type2" " = type=int_type2, val=2"
>
> + gdb_test "print (int_type3) an_int_type2" " = {s = 27}"
Maybe just add a comment above this to indicate what this tests? It's clear once
you go read the comment in the .py file, but it isn't here.
Otherwise, LGTM.
Simon