mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 07:19:31 +02:00
LazDebuggerFp: Fixed line number for exceptions.
This commit is contained in:
parent
18eae18d53
commit
bacefb51ae
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user