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 <mli...@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(-) > >