ida-minsc: Unable to set a structure member's custom type, it always is 'int'
@arizvisa hi, I have to come and ask you questions, I don’t know what went wrong, I can’t set the member’s custom type , it awaly is ‘int’:
import idaapi
import idc
st1 =structure.by_name('TTDBTextInfoGroup')
struct_name = 'TTDBTextInfoGroup*'
f1 = st1.members.by(offset=0)
print f1.typeinfo.dstr()
ordinal = f1.typeinfo.get_ordinal()
f1.typeinfo.set_numbered_type(idaapi.cvar.idati,ordinal,BTF_STRUCT, struct_name)
print f1.typeinfo.dstr()
_Originally posted by @gool123456 in https://github.com/arizvisa/ida-minsc/issues/61#issuecomment-664488530_
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 23 (16 by maintainers)
Okay. Try PR #63 again. I also cleaned up the typeinfo so that it’s properly emitted when displaying the structure member or listing them with
struc.list()
.@arizvisa Show Error :
Ahh. Okay. Seems like IDA 6.8’s API is completely different from IDA 7.x’s. Lemme see what IDA 6.8 expects you to do here and create a PR.