Skip to content

Commit

Permalink
set default field name when its name is none
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfavarin committed Sep 12, 2023
1 parent c9f7a63 commit b544d77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/ghidra_scripts/export_to_redux.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
type_name = component.getDataType().getName()
print('type: ' + type_name)
field_name = component.getFieldName()
if field_name is None:
field_name = component.getDefaultFieldName()
print('field name: ' + field_name)
field_length = str(component.getLength())
print('field length: ' + field_length)
Expand Down

0 comments on commit b544d77

Please sign in to comment.