[v2,2/4] Don't add type linkage names to cooked index
Commit Message
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.
---
gdb/dwarf2/read.c | 5 -----
1 file changed, 5 deletions(-)
@@ -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;