]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gdbhooks.py: update cgraph_node prettyprinter
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 29 Oct 2013 18:58:42 +0000 (18:58 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Tue, 29 Oct 2013 18:58:42 +0000 (18:58 +0000)
* gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
prettyprinter for cgraph_node to reflect the conversion of the
symtable types to a C++ class hierarchy: it now *is* a
symtab_node_base, rather than having one (named "symbol").

From-SVN: r204174

gcc/ChangeLog
gcc/gdbhooks.py

index 625dc71d5d406a76503e93cafba3a392e3e6fa6f..9f350ce4c021c57da5e9b135042d5dd130f38c8b 100644 (file)
@@ -1,3 +1,10 @@
+2013-10-29  David Malcolm  <dmalcolm@redhat.com>
+
+       * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
+       prettyprinter for cgraph_node to reflect the conversion of the
+       symtable types to a C++ class hierarchy: it now *is* a
+       symtab_node_base, rather than having one (named "symbol").
+
 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
 
        * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
index 3d69b11bfe95dac85d88b7f04372058eef44b2ae..53abf329113dfd9b5941f4a562842642cd4d9ff5 100644 (file)
@@ -226,8 +226,7 @@ class CGraphNodePrinter:
             # symtab_node_name calls lang_hooks.decl_printable_name
             # default implementation (lhd_decl_printable_name) is:
             #    return IDENTIFIER_POINTER (DECL_NAME (decl));
-            symbol = self.gdbval['symbol']
-            tree_decl = Tree(symbol['decl'])
+            tree_decl = Tree(self.gdbval['decl'])
             result += ' "%s"' % tree_decl.DECL_NAME().IDENTIFIER_POINTER()
         result += '>'
         return result