]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add pretty print for const_tree.
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 31 May 2019 10:33:14 +0000 (10:33 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 31 May 2019 10:33:14 +0000 (10:33 +0000)
2019-05-31  Martin Liska  <mliska@suse.cz>

* gdbhooks.py: Add const_tree to TreePrinter.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@271804 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gdbhooks.py

index b275f01b541895610f57c31db397045e1b8341d0..c4447288cc10c09d54721a0f23cb491511f79778 100644 (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
index 7b1a7be0002d68ca045fc5646ee8f4edaf40fc4d..39f5c4772f95f5920e1ac1f31b4288ed0651eff3 100644 (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)