mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 08:29:47 +02:00
fpdebug: fixed crash
This commit is contained in:
parent
5ee7f1a519
commit
5e1326dab3
@ -4647,6 +4647,7 @@ begin
|
||||
while FLineInfo.StateMachine.NextLine do
|
||||
begin
|
||||
Line := FLineInfo.StateMachine.Line;
|
||||
LineMap:=nil;
|
||||
|
||||
if (idx < 0) or (CurrentFileName <> FLineInfo.StateMachine.FileName) then begin
|
||||
idx := FLineNumberMap.IndexOf(FLineInfo.StateMachine.FileName);
|
||||
@ -4665,6 +4666,7 @@ begin
|
||||
addr := FLineInfo.StateMachine.Address;
|
||||
if (not FLineInfo.StateMachine.EndSequence) and (FLineInfo.StateMachine.IsStmt)
|
||||
and (Line > 0)
|
||||
and (LineMap<>nil)
|
||||
then
|
||||
LineMap^.SetAddressForLine(Line, addr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user