Debugger: assembler, fix rangecheck or wrong behaviour if debugger is nil

This commit is contained in:
Martin 2024-03-15 22:16:54 +01:00
parent ec9335ef59
commit 073f3095cf

View File

@ -949,7 +949,7 @@ begin
actCurrentInstr.Enabled := HasDisassembler and (FLocation <> 0);
actGotoAddr.Enabled := HasDisassembler and (StrToQWordDef(EditGotoAddr.Text, 0) <> 0);
actCopy.Enabled := HasDisassembler;
popCopyAddr.Enabled := GetLinMapEntryForLine(FSelectLine, dummy);
popCopyAddr.Enabled := HasDisassembler and GetLinMapEntryForLine(FSelectLine, dummy);
actStepOverInstr.Enabled := HasDisassembler;
actStepIntoInstr.Enabled := HasDisassembler;
end;