From f7d3cae073b2ac4f4ad1978fae92ab91cf533d4e Mon Sep 17 00:00:00 2001 From: Nick Alcock Date: Mon, 6 Aug 2012 19:06:38 +0100 Subject: [PATCH] ctf: include enumeration types inside functions Like structures and unions, enumerations are a named type in their own namespace: like structures and unions, arrays and other types based on such types are represented by a DWARF DIE outside all functions. So the duplicate detector must treat them like structures and unions, and include them even if they are inside functions. Signed-off-by: Nick Alcock --- scripts/dwarf2ctf/dwarf2ctf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dwarf2ctf/dwarf2ctf.c b/scripts/dwarf2ctf/dwarf2ctf.c index 545d3ba4fec7..c54702f56158 100644 --- a/scripts/dwarf2ctf/dwarf2ctf.c +++ b/scripts/dwarf2ctf/dwarf2ctf.c @@ -472,7 +472,7 @@ static struct assembly_tab_t { DW_TAG_subrange_type, NULL, assemble_ctf_array_dimension }, { DW_TAG_const_type, filter_ctf_file_scope, assemble_ctf_cvr_qual }, { DW_TAG_restrict_type, filter_ctf_file_scope, assemble_ctf_cvr_qual }, - { DW_TAG_enumeration_type, filter_ctf_file_scope, assemble_ctf_enumeration }, + { DW_TAG_enumeration_type, NULL, assemble_ctf_enumeration }, { DW_TAG_enumerator, NULL, assemble_ctf_enumerator }, { DW_TAG_pointer_type, filter_ctf_file_scope, assemble_ctf_pointer }, { DW_TAG_structure_type, NULL, assemble_ctf_struct_union }, -- 2.50.1