summaryrefslogtreecommitdiff
path: root/gcc/gdbhooks.py
diff options
context:
space:
mode:
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2013-10-29 18:58:42 +0000
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2013-10-29 18:58:42 +0000
commitbf93d7232b7d96638c215197b640e0984a123977 (patch)
tree14f3ca90b4bc5c0f39b1d67cfc6a8840c3fb1c06 /gcc/gdbhooks.py
parent4710dd5101f8103638ffe082a220f701f592df36 (diff)
downloadgcc-bf93d7232b7d96638c215197b640e0984a123977.tar.gz
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"). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204174 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gdbhooks.py')
-rw-r--r--gcc/gdbhooks.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/gdbhooks.py b/gcc/gdbhooks.py
index 3d69b11bfe9..53abf329113 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