Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

objective_c_symbol: fix handling of ivars of unknown type #66

Merged
merged 1 commit into from
Jul 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading