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:
martin 2019-01-03 00:12:02 +00:00
parent 2a86e8321c
commit 7ccec4c206

View File

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