diff mbox series

[OBVIOUS] Add pretty print for const_tree.

Message ID 4926f5c8-52d5-3dbc-1888-ba12fb1e01e4@suse.cz
State New
Headers show
Series [OBVIOUS] Add pretty print for const_tree. | expand

Commit Message

Martin Liška May 31, 2019, 10:31 a.m. UTC
Hi.

One obvious pretty printer change.

Martin

gcc/ChangeLog:

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

	* gdbhooks.py: Add const_tree to TreePrinter.
---
 gcc/gdbhooks.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gcc/gdbhooks.py b/gcc/gdbhooks.py
index 7b1a7be0002..39f5c4772f9 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)