LazDebuggerFp: Fixed line number for exceptions.

This commit is contained in:
Martin 2023-10-08 13:32:37 +02:00
parent 18eae18d53
commit bacefb51ae

View File

@ -3634,12 +3634,16 @@ var
ExceptionClass: string;
ExceptionMessage: string;
ExceptItem: TBaseException;
Offs: Integer;
begin
Offs := 0;
if not FDbgController.DefaultContext.ReadUnsignedInt(FDbgController.CurrentProcess.CallParamDefaultLocation(1),
SizeVal(SizeOf(ExceptIP)), ExceptIP)
then
then begin
ExceptIP := 0;
AnExceptionLocation:=GetLocationRec(ExceptIP, -1);
Offs := -1;
end;
AnExceptionLocation:=GetLocationRec(ExceptIP, Offs);
if not FDbgController.DefaultContext.ReadUnsignedInt(FDbgController.CurrentProcess.CallParamDefaultLocation(0),
SizeVal(SizeOf(AnExceptionObjectLocation)), AnExceptionObjectLocation)