mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 09:19:22 +02:00
FpDebug: Fixed mistake in attempt to solve AV in StateMachineValid
This commit is contained in:
parent
239b2be664
commit
be75a9d85e
@ -5881,15 +5881,15 @@ begin
|
|||||||
Result := FStateMachine <> nil;
|
Result := FStateMachine <> nil;
|
||||||
if Result then Exit;
|
if Result then Exit;
|
||||||
|
|
||||||
|
Result := FAddressInfo <> nil;
|
||||||
|
if not result then exit;
|
||||||
|
|
||||||
if FAddressInfo^.StateMachine = nil
|
if FAddressInfo^.StateMachine = nil
|
||||||
then begin
|
then begin
|
||||||
CompilationUnit.BuildLineInfo(FAddressInfo, False);
|
CompilationUnit.BuildLineInfo(FAddressInfo, False);
|
||||||
if FAddressInfo^.StateMachine = nil then Exit;
|
if FAddressInfo^.StateMachine = nil then Exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Result := FAddressInfo <> nil;
|
|
||||||
if not result then exit;
|
|
||||||
|
|
||||||
// we cannot restore a statemachine to its current state
|
// we cannot restore a statemachine to its current state
|
||||||
// so we shouldn't modify FAddressInfo^.StateMachine
|
// so we shouldn't modify FAddressInfo^.StateMachine
|
||||||
// so use clones to navigate
|
// so use clones to navigate
|
||||||
|
Loading…
Reference in New Issue
Block a user