summaryrefslogtreecommitdiff
path: root/gcc/gdbinit.in
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-02 09:25:46 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-02 09:25:46 +0000
commit00ae6be78c05e5130c3bcf817720f7817e755f68 (patch)
tree458d228cb79944d8ef6a71c42409a6bb17632a52 /gcc/gdbinit.in
parenta046943ec075e9bf5152e43b56b575463d4f76c8 (diff)
downloadgcc-00ae6be78c05e5130c3bcf817720f7817e755f68.tar.gz
* gdbinit.in (pct): New macro.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55979 138bc75d-0d04-0410-961f-82ee72b054a4
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