aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/index-write.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/dwarf2/index-write.c')
-rw-r--r--gdb/dwarf2/index-write.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/dwarf2/index-write.c b/gdb/dwarf2/index-write.c
index f592734..3d215a6 100644
--- a/gdb/dwarf2/index-write.c
+++ b/gdb/dwarf2/index-write.c
@@ -1167,6 +1167,11 @@ write_cooked_index (cooked_index_vector *table,
be redundant are rare and not worth supporting. */
continue;
}
+ else if ((entry->flags & IS_TYPE_DECLARATION) != 0)
+ {
+ /* Don't add type declarations to the index. */
+ continue;
+ }
gdb_index_symbol_kind kind;
if (entry->tag == DW_TAG_subprogram)