OSDN Git Service

PR symtab/11465:
authorkseitz <kseitz>
Fri, 20 Aug 2010 17:16:42 +0000 (17:16 +0000)
committerkseitz <kseitz>
Fri, 20 Aug 2010 17:16:42 +0000 (17:16 +0000)
commit186489a38eb0372c1b4e3b0cc3671da905edb7e5
tree9030d16129de930d164c988e541b18653c340c2e
parente10ce6a509510dd1e2fccd549dc4b231052bebff
PR symtab/11465:
  * dwarf2read.c (struct delayed_method_info): New struct.
(struct dwarf2_cu): Add vector method_list.
(scan_partial_symbols): Count methods for union, class, structure,
and interface types.
(add_to_method_list): New function.
(free_delayed_list): New function.
(compute_delayed_physnames): New function.
(process_full_comp_unit): Make a cleanup for the CU's delayed
physname list, compute the delayed physnames, and free the
the list.
(dwarf2_add_member_fn): For C++ and Java, delay the computation
of the physname until after the CU is read.

* dwarf2read.c (read_structure_type): Check if the current
DIE's type was already completed after dwarf2_full_name
was called.
gdb/ChangeLog
gdb/dwarf2read.c