Skip to content

Commit

Permalink
Merge pull request #66 from doronz88/bugfix/ivar-of-unknown-type
Browse files Browse the repository at this point in the history
objective_c_symbol: fix handling of ivars of unknown type
  • Loading branch information
doronz88 authored Jul 7, 2024
2 parents b7719f2 + 3dda467 commit e04069e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hilda/objective_c_symbol.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ def show(self, recursive: bool = False):
def _reload_ivars(self, ivars_data):
raw_ivars = sorted(ivars_data, key=lambda ivar: ivar['offset'])
for i, ivar in enumerate(raw_ivars):
ivar_type = decode_type(ivar['type'])
ivar_type = ivar['type']
if ivar_type:
ivar_type = decode_type(ivar_type)
else:
ivar_type = 'unknown_type_t'
value = ivar['value']
if i < len(raw_ivars) - 1:
# The .fm file returns a 64bit value, regardless of the real size.
Expand Down

0 comments on commit e04069e

Please sign in to comment.