Polaris
May 9th, 2003, 06:40
Hi there...
I am just making my first steps into IDA Plugin development, and I am already stuck
I am just trying to do the following: given a line of disasm like
...
loc_401235:
mov eax, ebx
...
I would like to have access to the string representation of all the line components (label, instruction, op1,op2).
While for retrieving names there's no problem (by using the GetName function) for retrieving ins and operands I am having no luck. I tried to use the fields of the insn_t built-in IDA type like
msg("Instruction code is %i",current.itype);
but the results are not correct. For 2 pushes I get 2 different values!
The same applies with the op_t field type.
Any help?
I am just making my first steps into IDA Plugin development, and I am already stuck

I am just trying to do the following: given a line of disasm like
...
loc_401235:
mov eax, ebx
...
I would like to have access to the string representation of all the line components (label, instruction, op1,op2).
While for retrieving names there's no problem (by using the GetName function) for retrieving ins and operands I am having no luck. I tried to use the fields of the insn_t built-in IDA type like
msg("Instruction code is %i",current.itype);
but the results are not correct. For 2 pushes I get 2 different values!
The same applies with the op_t field type.
Any help?