diff options
author | Doug Evans <dje@google.com> | 2008-10-06 22:23:17 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2008-10-06 22:23:17 +0000 |
commit | 725f9d7e0093d0f48fad8eb2862e5f613dd3a42c (patch) | |
tree | 39273dfdfac63be1ff8ffc172057272703a1faec /gdb/gdbinit.in | |
parent | 9014f1e8539cec13aecef91339cf245b4589b369 (diff) | |
download | gdb-725f9d7e0093d0f48fad8eb2862e5f613dd3a42c.tar.gz |
* dwarf2read.c (dwarf2_die_debug): New static global.
(dump_die_shallow): Renamed from dump_die, New args f, indent.
Print to specified file, indented by the specified amount.
(dump_die_for_error): New fn. Point all existing callers of
dump_die here.
(dump_die_die_1,dump_die): New fns, replaces ...
(dump_die_list): ... deleted.
(read_die_and_children_1): Old contents of read_die_and_children
moved here.
(read_die_and_children): Rewrite.
(read_die_and_siblings): Call read_die_and_children_1 instead of
read_die_and_children.
(_initialize_dwarf2_read): New option "debug dwarf2-die".
* gdbinit.in (pdie): New macro.
* doc/gdb.texinfo (set debug dwarf2-die): Document it.
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 1a080dca897..ffb7f53b500 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 |