Open GoogleCodeExporter opened 9 years ago
Updated version of the patch which fixes a regression against zero-member
structures.
Original comment by zachrig...@gmail.com
on 30 Nov 2013 at 4:31
Attachments:
Noticed this issue while looking for another--I encountered this problem myself
before even seeing this report. I reported it to Hex-Rays and it's fixed in the
latest IDA service pack.
Original comment by m...@60hz.org
on 28 Jan 2014 at 11:31
Can confirm this is fixed, at least as of 6.6
AddStruc(-1, 'example')
sid = GetStrucIdByName('example')
for offset in range(0,0x20,4):
AddStrucMember(sid=sid,
name='field_%x' % offset,
offset=offset,
flag=SizeToFlag[4],
typeid=-1,
nbytes=4)
DelStrucMember(sid, 4)
for member in StructMembers(sid):
print member
# (0, 'field_0', 4)
# (8, 'field_8', 4)
# (12, 'field_c', 4)
# (16, 'field_10', 4)
# (20, 'field_14', 4)
# (24, 'field_18', 4)
# (28, 'field_1c', 4)
Original comment by zachrig...@gmail.com
on 19 Jun 2014 at 6:53
Original issue reported on code.google.com by
zachrig...@gmail.com
on 29 Nov 2013 at 4:31Attachments: