From a5fb8067f7ffb951b5829cfaeb4e3e42c8f59c93 Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Thu, 30 May 2024 07:51:55 +0200 Subject: [PATCH] Use supported_types instead of raw list Signed-off-by: Juraj Oravec --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 4bf7a7d..0be9748 100644 --- a/main.py +++ b/main.py @@ -175,7 +175,7 @@ class Bear(): lloc = self.dump_expr(die_type, ll.loc_expr) 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 die_type_test = die_type while 'DW_AT_type' in die_type_test.attributes: