summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/gdbinit.in
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc/gdbinit.in')
-rw-r--r--contrib/gcc/gdbinit.in13
1 files changed, 11 insertions, 2 deletions
diff --git a/contrib/gcc/gdbinit.in b/contrib/gcc/gdbinit.in
index 5fae918..cee1131 100644
--- a/contrib/gcc/gdbinit.in
+++ b/contrib/gcc/gdbinit.in
@@ -31,6 +31,15 @@ Print the full structure of the tree that is $.
Works only when an inferior is executing.
end
+define pct
+set debug_c_tree ($)
+end
+
+document pct
+Print the tree that is $ in C syntax.
+Works only when an inferior is executing.
+end
+
define ptc
output (enum tree_code) $.common.code
echo \n
@@ -41,7 +50,7 @@ Print the tree-code of the tree node that is $.
end
define pdn
-output $.decl.name->identifier.pointer
+output $.decl.name->identifier.id.str
echo \n
end
@@ -50,7 +59,7 @@ Print the name of the decl-node that is $.
end
define ptn
-output $.type.name->decl.name->identifier.pointer
+output $.type.name->decl.name->identifier.id.str
echo \n
end
OpenPOWER on IntegriCloud