From 26bf4e330265441614b7cace1446007d0da3a909 Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Mon, 21 Feb 2005 18:00:17 +0000 Subject: [PATCH] Approved by nickc@redhat.com: 2005-02-21 Fred Fish * dwarf2.c (find_abstract_instance_name): Call recursively to handle a DW_AT_specification. --- bfd/ChangeLog | 5 +++++ bfd/dwarf2.c | 13 +++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 241924c8bf8..74ae25fe4f2 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-02-21 Fred Fish + + * dwarf2.c (find_abstract_instance_name): Call recursively + to handle a DW_AT_specification. + 2005-02-21 Thiemo Seufer * elfxx-mips.c (ecoff_swap_rpdr_out, mips_elf_output_extsym, diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index be8ba389706..fb5cf9f918a 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -1291,8 +1291,17 @@ find_abstract_instance_name (struct comp_unit *unit, bfd_uint64_t die_ref) for (i = 0; i < abbrev->num_attrs && !name; ++i) { info_ptr = read_attribute (&attr, &abbrev->attrs[i], unit, info_ptr); - if (attr.name == DW_AT_name) - name = attr.u.str; + switch (attr.name) + { + case DW_AT_name: + name = attr.u.str; + break; + case DW_AT_specification: + name = find_abstract_instance_name (unit, attr.u.val); + break; + default: + break; + } } } } -- 2.30.2