summaryrefslogtreecommitdiff
path: root/gcc/gdbinit.in
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2002-08-02 05:25:46 -0400
committerJason Merrill <jason@gcc.gnu.org>2002-08-02 05:25:46 -0400
commitb9d8832d731aa639658f29bcc612bc45c85d7d62 (patch)
tree458d228cb79944d8ef6a71c42409a6bb17632a52 /gcc/gdbinit.in
parent509da48a87fc1c7d2c31b687138f8ebfdd6802e2 (diff)
downloadgcc-b9d8832d731aa639658f29bcc612bc45c85d7d62.tar.gz
* gdbinit.in (pct): New macro.
From-SVN: r55979
Diffstat (limited to 'gcc/gdbinit.in')
-rw-r--r--gcc/gdbinit.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in
index 5fae9180461..17067df1b46 100644
--- a/gcc/gdbinit.in
+++ b/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