From e1be4b7e6a6bdf857a0565f6b1ef58d69234108f Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Thu, 30 May 2024 21:55:01 +0200 Subject: [PATCH] Add pointer type to supported types Signed-off-by: Juraj Oravec --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)