From 8688bb6278134c65a918e99911f725d009429a61 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 29 Aug 2023 18:38:25 -0600 Subject: [PATCH] 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 --- gdb/dwarf2/read.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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: -- 2.30.2