From: Nick Alcock Date: Mon, 6 Aug 2012 18:06:38 +0000 (+0100) Subject: ctf: include enumeration types inside functions X-Git-Tag: v4.1.12-92~313^2~130 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f7d3cae073b2ac4f4ad1978fae92ab91cf533d4e;p=users%2Fjedix%2Flinux-maple.git 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 --- 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 },