From: David Malcolm Date: Tue, 29 Oct 2013 18:58:42 +0000 (+0000) Subject: gdbhooks.py: update cgraph_node prettyprinter X-Git-Tag: releases/gcc-4.9.0~3170 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d19245aa46952d4eff8d4b4a72c81977daf23f3a;p=thirdparty%2Fgcc.git gdbhooks.py: update cgraph_node prettyprinter * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 625dc71d5d40..9f350ce4c021 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2013-10-29 David Malcolm + + * 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 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and diff --git a/gcc/gdbhooks.py b/gcc/gdbhooks.py index 3d69b11bfe95..53abf329113d 100644 --- a/gcc/gdbhooks.py +++ b/gcc/gdbhooks.py @@ -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