mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-10 14:59:36 +02:00
FpDebug: Callstack, adjust to show the current calling line, instead of the line after it. Issue #0034753
git-svn-id: trunk@59978 -
This commit is contained in:
parent
2a86e8321c
commit
7ccec4c206
@ -431,7 +431,10 @@ end;
|
||||
function TDbgCallstackEntry.GetSymbol: TFpDbgSymbol;
|
||||
begin
|
||||
if not FIsSymbolResolved then begin
|
||||
FSymbol := FThread.Process.FindSymbol(FAnAddress);
|
||||
if FIndex > 0 then
|
||||
FSymbol := FThread.Process.FindSymbol(FAnAddress - 1) // -1 => inside the call instruction
|
||||
else
|
||||
FSymbol := FThread.Process.FindSymbol(FAnAddress);
|
||||
FIsSymbolResolved := FSymbol <> nil
|
||||
end;
|
||||
result := FSymbol;
|
||||
|
Loading…
Reference in New Issue
Block a user