aboutsummaryrefslogtreecommitdiff
path: root/gcc/gdbinit.in
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2010-05-27 14:39:56 -0400
committerJason Merrill <jason@gcc.gnu.org>2010-05-27 14:39:56 -0400
commitb042534cd86b042e1d4e4d5588f5c90f0370a0aa (patch)
tree68bf32ee537f2e31766ddc4d8d716ea60c1f5c50 /gcc/gdbinit.in
parentfb9c3174c9771bd3dd658dd25205f1d1486778f7 (diff)
downloadgcc-b042534cd86b042e1d4e4d5588f5c90f0370a0aa.zip
gcc-b042534cd86b042e1d4e4d5588f5c90f0370a0aa.tar.gz
gcc-b042534cd86b042e1d4e4d5588f5c90f0370a0aa.tar.bz2
print-tree.c (debug_vec_tree): New fn.
* print-tree.c (debug_vec_tree): New fn. (print_vec_tree): New fn. * tree.h: Declare them. * gdbinit.in (ptv): New command. * print-tree.c (print_node) [TREE_VEC]: Print elements normally. * gdbinit.in (pdd): New command. From-SVN: r159941
Diffstat (limited to 'gcc/gdbinit.in')
-rw-r--r--gcc/gdbinit.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in
index 22c99a7..e2375b2 100644
--- a/gcc/gdbinit.in
+++ b/gcc/gdbinit.in
@@ -122,6 +122,22 @@ document ptn
Print the name of the type-node that is $.
end
+define pvt
+set debug_vec_tree ($)
+end
+
+document pvt
+Print the VEC(tree) that is in $.
+end
+
+define pdd
+set debug_dwarf_die ($)
+end
+
+document pdd
+Print the dw_die_ref that is in $.
+end
+
define prc
output (enum rtx_code) $.code
echo \ (