Look at the condition. It is supposed to break only when the R2 is 40, but it breaks in any call to this instruction. I'm using IDA Pro 7.2.181105, debugging with Remote GDB Debugger, an ARMv4T code. I'm completely beginner with IDA Pro.
1 Answer
You need to change the Actions from "Trace" to "Break" When the condition is true the action will execute.
-
-
-
are you using gdbserver, qemu, openOCD or something else as the "Gdb stub" ? I would check with gdb command you can set the conditional breakpoint i.e. break <location> if $r2 == 40. Jan 20, 2020 at 8:06
-
In the
output window
, I selectGDB
and typebreak <location> if $r2 == 40
(changing <location> to the adress) and hit enter. The error is:<error sending command to monitor>
. I'm using mGBA to debug a GBA Advance game Jan 20, 2020 at 15:51