diff options
author | Tom Tromey <tromey@adacore.com> | 2022-10-14 07:08:57 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-10-17 08:01:39 -0600 |
commit | acd121de32c3924347f228d8f27000a09b9c8949 (patch) | |
tree | 129fbf5fb2bcad2816e115d6312720994b7c4b7f | |
parent | 67e83a0deef78e9e286b663efd5a7144f09dbb95 (diff) | |
download | binutils-acd121de32c3924347f228d8f27000a09b9c8949.zip binutils-acd121de32c3924347f228d8f27000a09b9c8949.tar.gz binutils-acd121de32c3924347f228d8f27000a09b9c8949.tar.bz2 |
Don't add type linkage names to cooked index
The compiler will sometimes emit a linkage name for a type, like:
<1d3> DW_AT_linkage_name: (indirect string, offset: 0x106f): 11__mbstate_t
These names aren't very useful, and this patch changes the DWARF
reader so that they are ignored by the cooked index.
-rw-r--r-- | gdb/dwarf2/read.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index e62f975..33dfd52 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -17991,11 +17991,6 @@ tag_can_have_linkage_name (enum dwarf_tag tag) { switch (tag) { - /* We include types here because an anonymous C++ type might - have a name for linkage purposes. */ - case DW_TAG_class_type: - case DW_TAG_structure_type: - case DW_TAG_union_type: case DW_TAG_variable: case DW_TAG_subprogram: return true; |