From 55475340ca8943464bfddee7f4b72c92ce2aec3d Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 28 Nov 2023 01:29:59 +0100 Subject: [PATCH] Debugger: do not search source frame, if doing asm-single-steps --- ide/debugmanager.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ide/debugmanager.pas b/ide/debugmanager.pas index 3166a8dc39..7ca637049c 100644 --- a/ide/debugmanager.pas +++ b/ide/debugmanager.pas @@ -1624,6 +1624,7 @@ begin SrcLine := FCurrentLocation.SrcLine; if (SrcLine < 1) and (SrcLine <> -2) // TODO: this should move to the debugger // SrcLine will be -2 after stepping (gdbmi) + and not FAsmStepping then begin TId := Threads.CurrentThreads.CurrentThreadId; if CallStack.CurrentCallStackList.EntriesForThreads[TId].HasAtLeastCount(30) = nbUnknown then begin @@ -1670,6 +1671,7 @@ begin if (SrcLine < 1) and (SrcLine <> -2) // TODO: this should move to the debugger // SrcLine will be -2 after stepping (gdbmi) + and not FAsmStepping then begin // jump to the deepest stack frame with debugging info // TODO: Only below the frame supplied by debugger