2

Sometime the meaning of variable has been changed on the function.

For example from Ida pseudo code:

a = price
....
a= tax....

In the beginning of function a was price and after that a is tax.

How can I split a to 2 different variable so I can rename this variable in Ida Pro

1 Answer 1

2

Shift+F or right-click on the variable and then choose "Force new variable".

IDA documentation: https://www.hex-rays.com/products/decompiler/manual/cmd_force_lvar.shtml

4
  • Shift+F7 open segment tabs. And there is no Force new variable option while right click on variable Nov 16, 2021 at 8:52
  • Which version of IDA are you running?
    – zi0Black
    Nov 16, 2021 at 9:02
  • 7.6 is my version Nov 16, 2021 at 9:33
  • I fixed the shortcut. BTW as you can see from the documentation, it's the built-in function to do this and note that: "Currently, only aliasable stack variables can be forced."
    – zi0Black
    Nov 16, 2021 at 12:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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