Skip to content

Watching Variable Accesses

Zorg edited this page Oct 24, 2014 · 2 revisions

Once the desired variable is found, one can find the instructions (the code) that accesses the variable's value. There are two ways to do this: either one can watch for write accesses or can watch for both read and write accesses.

For example:

  1. I searched for variable that represents my number of lives in a video game
  2. I select the variable in the table and watch for write accesses by going to Variable -> Watch -> Write Accesses (or by right-clicking)
  3. In-game, I decrease my number of lives by falling off the stage
  4. An instruction popped up in the table that (in this case) subtracts my character's lives.

Once the instruction(s) that access a variable's value are found, it is up to you to decide what to do from there. In this instance I could NOP (no operation) the instructions (Variable -> NOP Variable), I could show them in the debugger, modify them in another way, or do something else.

The added instruction's description will also contain the register values before the instruction was executed for the first time. This can be useful for identifying which values were used when the instruction was encountered.