Add pretty print for const_tree.

2019-05-31  Martin Liska  <mliska@suse.cz>

	* gdbhooks.py: Add const_tree to TreePrinter.

From-SVN: r271804
This commit is contained in:
Martin Liska 2019-05-31 12:33:14 +02:00 committed by Martin Liska
parent d1137c020a
commit decc53df4e
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2019-05-31 Martin Liska <mliska@suse.cz>
* gdbhooks.py: Add const_tree to TreePrinter.
2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
PR debug/86964

View File

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