]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ctf: include enumeration types inside functions
authorNick Alcock <nick.alcock@oracle.com>
Mon, 6 Aug 2012 18:06:38 +0000 (19:06 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 29 Jun 2015 21:40:29 +0000 (22:40 +0100)
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 <nick.alcock@oracle.com>
scripts/dwarf2ctf/dwarf2ctf.c

index 545d3ba4fec7084e6975cdb63cb56c8927f2d528..c54702f56158258ddab7a866ed7276c85c5846a5 100644 (file)
@@ -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 },