Add basic support for ENUM types
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
20c20d87e6
commit
e1f6b279f2
3
main.py
3
main.py
@ -22,6 +22,7 @@ def eprint(*args, **kwargs):
|
|||||||
if configuration['print_debug_info']:
|
if configuration['print_debug_info']:
|
||||||
print(*args, file=sys.stderr, **kwargs)
|
print(*args, file=sys.stderr, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
def epprint(*args, **kwargs):
|
def epprint(*args, **kwargs):
|
||||||
if configuration['print_debug_info']:
|
if configuration['print_debug_info']:
|
||||||
pprint(*args, stream=sys.stderr, **kwargs)
|
pprint(*args, stream=sys.stderr, **kwargs)
|
||||||
@ -236,6 +237,8 @@ class Bear():
|
|||||||
|
|
||||||
child_entries.append(child_entry)
|
child_entries.append(child_entry)
|
||||||
entry['children'] = child_entries
|
entry['children'] = child_entries
|
||||||
|
elif die_type.tag == 'DW_TAG_enumeration_type':
|
||||||
|
entry['type'] = safe_DIE_name(die_type, 'ENUM')
|
||||||
else:
|
else:
|
||||||
eprint("Unsupported type:", die_type.tag)
|
eprint("Unsupported type:", die_type.tag)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user