You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After parsing (result = cparser.relocation_info(data)), only r_address appears in ._sizes. The other fields (r_symbolname, r_pcrel, r_length, r_extern, r_type) are missing:
>>> result._sizes
{'r_address': 4}
This makes it impossible to use dumpstruct() which I assume loops through the OrderedDict ._values and attempts to look each one up in ._sizes:
>>> dumpstruct(result)
Traceback (most recent call last):
...
/cstruct/types/instance.py", line 47, in _size
return self._sizes[field]
KeyError: 'r_symbolname'
The text was updated successfully, but these errors were encountered:
Here is a simple struct with bitfields:
After parsing (
result = cparser.relocation_info(data)
), only r_address appears in._sizes
. The other fields (r_symbolname, r_pcrel, r_length, r_extern, r_type) are missing:This makes it impossible to use
dumpstruct()
which I assume loops through the OrderedDict ._values and attempts to look each one up in ._sizes:The text was updated successfully, but these errors were encountered: