From: Martin Liska Date: Fri, 31 May 2019 10:33:14 +0000 (+0200) Subject: Add pretty print for const_tree. X-Git-Tag: misc/cutover-git~5136 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=decc53df4e4e50f1f202e1cb01acbceb8320f841;p=thirdparty%2Fgcc.git Add pretty print for const_tree. 2019-05-31 Martin Liska * gdbhooks.py: Add const_tree to TreePrinter. From-SVN: r271804 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b275f01b5418..c4447288cc10 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-05-31 Martin Liska + + * gdbhooks.py: Add const_tree to TreePrinter. + 2019-05-31 Thomas De Schampheleire PR debug/86964 diff --git a/gcc/gdbhooks.py b/gcc/gdbhooks.py index 7b1a7be0002d..39f5c4772f95 100644 --- a/gcc/gdbhooks.py +++ b/gcc/gdbhooks.py @@ -540,7 +540,7 @@ class GdbPrettyPrinters(gdb.printing.PrettyPrinter): def build_pretty_printer(): pp = GdbPrettyPrinters('gcc') - pp.add_printer_for_types(['tree'], + pp.add_printer_for_types(['tree', 'const_tree'], 'tree', TreePrinter) pp.add_printer_for_types(['cgraph_node *', 'varpool_node *', 'symtab_node *'], 'symtab_node', SymtabNodePrinter)