diff options
Diffstat (limited to 'gdb/gdbinit.in')
-rw-r--r-- | gdb/gdbinit.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb/gdbinit.in b/gdb/gdbinit.in index 1a080dc..ffb7f53 100644 --- a/gdb/gdbinit.in +++ b/gdb/gdbinit.in @@ -15,3 +15,20 @@ dir @srcdir@/../bfd dir @srcdir@ dir . set prompt (top-gdb) + +define pdie + if $argc == 1 + call dump_die ($arg0, 1) + else + if $argc == 2 + call dump_die ($arg0, $arg1) + else + printf "Syntax: pdie die [depth]\n" + end + end +end + +document pdie +Pretty print a DWARF DIE. +Syntax: pdie die [depth] +end |