This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Allow a pretty-printer without a to_string method


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]