This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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] gdbhooks: Add new pretty-printers for: varpool_node, symtab_node, cgraph_edge and ipa_ref.


On Tue, 2018-04-10 at 14:45 +0200, Martin Liška wrote:
> Hi.
> 
> I'm bit ashamed that I tasted our gdb pretty-printers today for the
> first time.
> It's working nice and I would like to extend it a bit for classes
> that I print/debug often.

This looks good from the gdbhooks.py side; I'll assume that this is
sane from the cgraph/IPA side.

You might want to add an example of how each of cgraph_edge and ipa_ref
get printed to the "Examples of output using the pretty-printers"
comment (after the cgraph_node example).

OK with that change.

> gcc/ChangeLog:
> 
> 2018-04-10  Martin Liska  <mliska@suse.cz>
> 
> 	* gdbhooks.py: Add pretty-printers for varpool_node,
> symtab_node,
> 	cgraph_edge and ipa_ref.
> ---
>  gcc/gdbhooks.py | 45 ++++++++++++++++++++++++++++++++++++++-------
>  1 file changed, 38 insertions(+), 7 deletions(-)
> 
> 


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