From: Tom Tromey Date: Wed, 30 Aug 2023 00:38:25 +0000 (-0600) Subject: Unify DW_TAG_typedef case in new_symbol X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8688bb6278134c65a918e99911f725d009429a61;p=binutils-gdb.git Unify DW_TAG_typedef case in new_symbol This patch merges the DW_TAG_typedef case in new_symbol with some other type-related cases. These all have identical code. Reviewed-By: Guinevere Larsen --- diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index b45afa12d0b..94d98feb56b 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -19352,15 +19352,11 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu, } } break; - case DW_TAG_typedef: - sym->set_aclass_index (LOC_TYPEDEF); - sym->set_domain (VAR_DOMAIN); - list_to_add = cu->list_in_scope; - break; case DW_TAG_unspecified_type: if (cu->lang () == language_ada) break; /* FALLTHROUGH */ + case DW_TAG_typedef: case DW_TAG_array_type: case DW_TAG_base_type: case DW_TAG_subrange_type: