diff options
author | Doug Evans <dje@google.com> | 2012-03-01 19:55:35 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2012-03-01 19:55:35 +0000 |
commit | 122d19408463da32356364a2daf58a9ba69443cc (patch) | |
tree | fc855626cb01df7f98e892b4e325f94a4239ed36 | |
parent | 7d74f2446c5ebad93f62426e285b64de882db843 (diff) | |
download | gdb-122d19408463da32356364a2daf58a9ba69443cc.zip gdb-122d19408463da32356364a2daf58a9ba69443cc.tar.gz gdb-122d19408463da32356364a2daf58a9ba69443cc.tar.bz2 |
* dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
has_namespace_info.
(dwarf2_read_abbrevs): Remove corresponding initialization.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 27 |
2 files changed, 7 insertions, 26 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0fe7178..2b06661 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2012-03-01 Doug Evans <dje@google.com> + + * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr, + has_namespace_info. + (dwarf2_read_abbrevs): Remove corresponding initialization. + 2012-03-01 Scott J. Goldman <scottjg@vmware.com> * NEWS: Mention new python command class gdb.COMMAND_USER. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 799f082..5810c31 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -378,16 +378,6 @@ struct dwarf2_cu /* Mark used when releasing cached dies. */ unsigned int mark : 1; - /* This flag will be set if this compilation unit might include - inter-compilation-unit references. */ - unsigned int has_form_ref_addr : 1; - - /* This flag will be set if this compilation unit includes any - DW_TAG_namespace DIEs. If we know that there are explicit - DIEs for namespaces, we don't need to try to infer them - from mangled names. */ - unsigned int has_namespace_info : 1; - /* This CU references .debug_loc. See the symtab->locations_valid field. This test is imperfect as there may exist optimized debug code not using any location list and still facing inlining issues if handled as @@ -9343,9 +9333,6 @@ dwarf2_read_abbrevs (struct dwarf2_cu *cu) cur_abbrev->has_children = read_1_byte (abfd, abbrev_ptr); abbrev_ptr += 1; - if (cur_abbrev->tag == DW_TAG_namespace) - cu->has_namespace_info = 1; - /* now read in declarations */ abbrev_name = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); abbrev_ptr += bytes_read; @@ -9361,16 +9348,6 @@ dwarf2_read_abbrevs (struct dwarf2_cu *cu) * sizeof (struct attr_abbrev))); } - /* Record whether this compilation unit might have - inter-compilation-unit references. If we don't know what form - this attribute will have, then it might potentially be a - DW_FORM_ref_addr, so we conservatively expect inter-CU - references. */ - - if (abbrev_form == DW_FORM_ref_addr - || abbrev_form == DW_FORM_indirect) - cu->has_form_ref_addr = 1; - cur_attrs[cur_abbrev->num_attrs].name = abbrev_name; cur_attrs[cur_abbrev->num_attrs++].form = abbrev_form; abbrev_name = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); @@ -10116,9 +10093,7 @@ fixup_partial_die (struct partial_die_info *part_die, /* If there is no parent die to provide a namespace, and there are children, see if we can determine the namespace from their linkage - name. - NOTE: We need to do this even if cu->has_namespace_info != 0. - gcc-4.5 -gdwarf-4 can drop the enclosing namespace. */ + name. */ if (cu->language == language_cplus && !VEC_empty (dwarf2_section_info_def, dwarf2_per_objfile->types) && part_die->die_parent == NULL |