Debugger: do not search source frame, if doing asm-single-steps

This commit is contained in:
Martin 2023-11-28 01:29:59 +01:00
parent 476cfd4484
commit 55475340ca

View File

@ -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