Add pointer type to supported types

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2024-05-30 21:55:01 +02:00
parent b520e6d0f5
commit e1be4b7e6a
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -22,7 +22,8 @@ supported_types = [
'DW_TAG_structure_type', 'DW_TAG_structure_type',
'DW_TAG_array_type', 'DW_TAG_array_type',
'DW_TAG_union_type', 'DW_TAG_union_type',
'DW_TAG_enumeration_type' 'DW_TAG_enumeration_type',
'DW_TAG_pointer_type',
] ]
@ -257,6 +258,8 @@ class Bear():
entry['children'] = child_entries entry['children'] = child_entries
elif die_type.tag == 'DW_TAG_enumeration_type': elif die_type.tag == 'DW_TAG_enumeration_type':
entry['type'] = safe_DIE_name(die_type, 'ENUM') entry['type'] = safe_DIE_name(die_type, 'ENUM')
elif die_type.tag == 'DW_TAG_pointer_type':
entry['type'] = safe_DIE_name(die_type, 'POINTER')
else: else:
eprint("Unsupported type:", die_type.tag) eprint("Unsupported type:", die_type.tag)