This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] gdbhooks: Add new pretty-printers for: varpool_node, symtab_node, cgraph_edge and ipa_ref.
- From: David Malcolm <dmalcolm at redhat dot com>
- To: Martin Liška <mliska at suse dot cz>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 10 Apr 2018 10:10:48 -0400
- Subject: Re: [PATCH] gdbhooks: Add new pretty-printers for: varpool_node, symtab_node, cgraph_edge and ipa_ref.
- References: <e9d66c26-4065-70aa-7784-b41f7ab93828@suse.cz>
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(-)
>
>