hi
i want to get the size of an operand (op 0 at ea)
sadly, idapython does not implement get_dtyp_size function...
so i wanted to do it manualy by
flags = idaapi.getFlags(ea)
ti = idaapi.get_typeinfo(ins,0,flags)
size = idaapi.get_data_type_size(flags,ti)
print "size", size
this doesnt work (get_type_info needs 4 args, 3 given)
so i tried:
ti = idaapi.typeinfo_t()
flags = idaapi.getFlags(ea)
idaapi.get_typeinfo(ins,0,flags, ti)
size = idaapi.get_data_type_size(flags,ti)
print "size", size
then size is always 1 (which is incorrect)
what am i doing wrong? how to do it right?
it seems to me that get_typeinfo should not need a fourth arg and return typeinfo instead?!
please help! thanks!







