From c6df32a82cf8d519bb741e66c456c1a388536b6c Mon Sep 17 00:00:00 2001 From: ccrause Date: Wed, 24 Feb 2021 21:48:27 +0200 Subject: [PATCH] Fix to make debugger stop at breakpoint at address 0. Only single step in TDbgAvrProcess.Continue if SingleStep parameter is true. --- components/fpdebug/fpdbgavrclasses.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/fpdebug/fpdbgavrclasses.pas b/components/fpdebug/fpdbgavrclasses.pas index 195f834001..250aae6dc2 100644 --- a/components/fpdebug/fpdbgavrclasses.pas +++ b/components/fpdebug/fpdbgavrclasses.pas @@ -713,7 +713,7 @@ begin end; end; - if TDbgAvrThread(AThread).FIsPaused then // in case of deInternal, it may not be paused and can be ignored + if TDbgAvrThread(AThread).FIsPaused and SingleStep then // in case of deInternal, it may not be paused and can be ignored if HasInsertedBreakInstructionAtLocation(AThread.GetInstructionPointerRegisterValue) then begin TempRemoveBreakInstructionCode(AThread.GetInstructionPointerRegisterValue);