diff --git a/main.py b/main.py index 8829611..081150a 100644 --- a/main.py +++ b/main.py @@ -22,7 +22,8 @@ supported_types = [ 'DW_TAG_structure_type', 'DW_TAG_array_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 elif die_type.tag == 'DW_TAG_enumeration_type': 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: eprint("Unsupported type:", die_type.tag)