I want to set a breakpoint when the register EAX = 00000001
1 Answer
Do you mean you want a breakpoint to fire every time eax
is 1
, no matter what address? That's not possible with any debugger. If you mean you want to set a breakpoint at a particular address that only fires when eax
is 1
, that's doable.
- Set a breakpoint on some instruction with
F2
. - Right-click on the instruction and choose
Edit breakpoint...
. - Write
EAX == 1
in theCondition
field on the dialog box.
The Edit breakpoint
dialog is described in great detail in the IDA manual. Search for "Edit breakpoint"; there are several pages describing it.
-
This could be possible with Unicorn Engine, though (or Qiling). However, I'll admit that this sort of goes beyond the original question with IDA as its scope.– 0xC0000022L ♦Commented Jun 28, 2021 at 10:06
-
1As I mentioned to the poster in a comment on another one of his questions (reverseengineering.stackexchange.com/questions/26266/…), this type of request is stepping outside of what the x86 debug interface offers naturally, and requires something like emulation or DBI. Commented Jun 28, 2021 at 20:09