Use supported_types instead of raw list

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2024-05-30 07:51:55 +02:00
parent 0ef702383a
commit a5fb8067f7
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -175,7 +175,7 @@ class Bear():
lloc = self.dump_expr(die_type, ll.loc_expr) lloc = self.dump_expr(die_type, ll.loc_expr)
entry['address'] = hex(int(entry['address'], 16) + lloc[0].args[0]) entry['address'] = hex(int(entry['address'], 16) + lloc[0].args[0])
if 'DW_AT_type' in die_type.attributes and die_type.tag not in ['DW_TAG_base_type', 'DW_TAG_structure_type', 'DW_TAG_array_type']: if 'DW_AT_type' in die_type.attributes and die_type.tag not in supported_types:
# Check if the type is a redefinition of a base type # Check if the type is a redefinition of a base type
die_type_test = die_type die_type_test = die_type
while 'DW_AT_type' in die_type_test.attributes: while 'DW_AT_type' in die_type_test.attributes: