Use supported_types instead of raw list
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
0ef702383a
commit
a5fb8067f7
2
main.py
2
main.py
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user