[PATCH] gdbhooks: Add new pretty-printers for: varpool_node, symtab_node, cgraph_edge and ipa_ref.

Martin Liška mliska@suse.cz
Tue Apr 10 14:43:00 GMT 2018


On 04/10/2018 04:10 PM, David Malcolm wrote:
> 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.

Thanks for feedback, do that in r259283.

Martin

> 
>> 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(-)
>>
>>



More information about the Gcc-patches mailing list