2

How do I list all destinations from relative jump instructions (e.g. the jmpr instruction) in IDA?

1 Answer 1

1

With your cursor on the given instruction, press Shift+F2 to bring up the IDC window, paste the following script into the script body pane, and press the Run button in the dialog window.

auto x = Rfirst0(ScreenEA());
while (x != BADADDR)
{
    Message("0x%08X\n", x);
    x = Rnext0(ScreenEA(), x);
}
1
  • Almost exactly what I'm looking for. Thanks man. Commented Mar 16, 2014 at 14:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.