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