2003-09-30 David Carlton <carlton@kealia.com>
authorDavid Carlton <carlton@bactrian.org>
Tue, 30 Sep 2003 22:29:28 +0000 (22:29 +0000)
committerDavid Carlton <carlton@bactrian.org>
Tue, 30 Sep 2003 22:29:28 +0000 (22:29 +0000)
commit639d11d30824e0fb7f9585400eac60534cd7fc9a
tree8ee83cbdc533223e6bb4512fb1ce338e4f61406d
parent1fc0d1736505693dd0ab10986920cc6c8a5c4110
2003-09-30  David Carlton  <carlton@kealia.com>

* dwarf2read.c (struct die_info): Add 'parent' field; replace
'has_children' and 'next' by 'child' and 'sibling'.
(read_comp_unit): Rework algorithm, breaking body into
read_die_and_children and read_die_and_siblings.
(read_die_and_children, read_die_and_siblings): New.
(read_full_die): Add 'has_children' argument; set it instead of
the die's 'has_children' field.  Minor formatting cleanup.
(free_die_list): Use die->child and die->sibling instead of
die->next.
(dump_die_list): Ditto.
(sibling_die): Use die->sibling.
(psymtab_to_symtab_1): Use die's 'child' field in place of its
'has_children' and 'next' fields.
(process_die, read_file_scope, read_func_scope)
(read_lexical_block_scope, read_structure_scope)
(read_enumeration, read_array_type, read_common_block)
(read_namespace, read_subroutine_type, dump_die): Ditto.
gdb/ChangeLog
gdb/dwarf2read.c