Initiate and run my plugin in mode of debug: ida create a lot of segments (debug and not only). Into plugin use compare with EIP:
// Get EIP register value
get_reg_val("eip", &eip);
for (run over all segments)
{
if ((eip.ival > (seg->startEA))
&& (eip.ival < (seg->endEA)))
msg("EIP=%a from segment %d at %a to %a is named %s ",
eip.ival, i, seg->startEA, seg->endEA, segName);
}
But don't work :( Write name of non-existent segments.
Help, please, decide a question...
Quite possible, error in addressing of segments or no :(







