* dwarf2read.c (dwarf2_die_debug): New static global.
authorDoug Evans <dje@google.com>
Mon, 6 Oct 2008 22:23:18 +0000 (22:23 +0000)
committerDoug Evans <dje@google.com>
Mon, 6 Oct 2008 22:23:18 +0000 (22:23 +0000)
commitd97bc12be0807f1de4cbddd62dedc9a6e88a54d9
tree18bd0ad65f932cc97298a57ced61db673663aff9
parent4545259105cd6f772b6d733e06f32d4e872e82c5
* 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.
gdb/ChangeLog
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/dwarf2read.c
gdb/gdbinit.in