gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 5 Jun 2010 14:11:54 +0000 (14:11 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 5 Jun 2010 14:11:54 +0000 (14:11 +0000)
commit7e314c57568d63ca63ac5386bde63bc024b91357
tree9e6d9a1bb2df56d1d785dc0236c3b6150910d6aa
parent2f29611481c5b740af6b2f61ec90a1359296a95b
gdb/
Fix duplicate types for single DIE.
* dwarf2read.c (read_structure_type): Move set_descriptive_type after
set_die_type.
(read_array_type): Remove type initialization.  Recheck get_die_type
after initial die_type.  Move set_die_type before set_descriptive_type.
(read_set_type): New variable domain_type.  Recheck get_die_type after
initial die_type.  Move attr initialization later.
(read_tag_pointer_type, read_tag_reference_type): New variable
target_type.  Recheck get_die_type after initial die_type.
(read_tag_ptr_to_member_type): Recheck get_die_type after initial
die_type and die_containing_type.
(read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
Recheck get_die_type after initial die_type.
(read_subrange_type): Recheck get_die_type after initial die_type.
Move set_die_type before set_descriptive_type.
(set_die_type): Extend the function comment.  Call complaint if DIE has
some type already set.
gdb/ChangeLog
gdb/dwarf2read.c