LazDebuggerFpLldb: prevent crash in asm window, if dwarf info failed to load

git-svn-id: branches/fixes_2_0@60937 -
This commit is contained in:
mattias 2019-04-12 13:54:16 +00:00
parent f1a7b48223
commit 21071b34d1

View File

@ -1102,7 +1102,9 @@ var
cmd: TFpLldbDebuggerCommandDisassemble;
begin
Result := False;
if (Debugger = nil) or not(Debugger.State = dsPause) or FIsDisassembling then
if (Debugger = nil) or not(Debugger.State = dsPause) or FIsDisassembling or
(TFpLldbDebugger(Debugger).FDwarfInfo = nil)
then
exit;
FIsDisassembling := True;
cmd := TFpLldbDebuggerCommandDisassemble.Create(self, AnAddr, ALinesBefore, ALinesAfter);