mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 19:20:17 +02:00
FpDebug: fix range check error in stack
(cherry picked from commit 126dd815cd
)
This commit is contained in:
parent
9f70423e35
commit
1940610041
@ -1157,7 +1157,7 @@ end;
|
|||||||
function TDbgCallstackEntry.GetProcSymbol: TFpSymbol;
|
function TDbgCallstackEntry.GetProcSymbol: TFpSymbol;
|
||||||
begin
|
begin
|
||||||
if not FIsSymbolResolved then begin
|
if not FIsSymbolResolved then begin
|
||||||
if FIndex > 0 then
|
if (FIndex > 0) and (FAnAddress <> 0) then
|
||||||
FSymbol := FThread.Process.FindProcSymbol(FAnAddress - 1) // -1 => inside the call instruction
|
FSymbol := FThread.Process.FindProcSymbol(FAnAddress - 1) // -1 => inside the call instruction
|
||||||
else
|
else
|
||||||
FSymbol := FThread.Process.FindProcSymbol(FAnAddress);
|
FSymbol := FThread.Process.FindProcSymbol(FAnAddress);
|
||||||
|
Loading…
Reference in New Issue
Block a user