mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-30 03:50:43 +02:00
FpDebugger (pure): Show error-message on failure to start debuggee
git-svn-id: trunk@45848 -
This commit is contained in:
parent
769fbc3cde
commit
8397b21039
@ -623,12 +623,14 @@ begin
|
||||
|
||||
sleep(100);
|
||||
result := TDbgDarwinProcess.Create(AFileName, Pid, -1, AOnLog);
|
||||
TDbgDarwinProcess(result).FProcProcess := AProcess;
|
||||
except
|
||||
AProcess.Free;
|
||||
raise;
|
||||
on E: Exception do
|
||||
begin
|
||||
AOnLog(Format('Failed to start process "%s". Errormessage: "%s".',[AFileName, E.Message]), dllInfo);
|
||||
AProcess.Free;
|
||||
end;
|
||||
end;
|
||||
|
||||
TDbgDarwinProcess(result).FProcProcess := AProcess;
|
||||
end;
|
||||
|
||||
function TDbgDarwinProcess.ReadData(const AAdress: TDbgPtr;
|
||||
|
@ -504,12 +504,14 @@ begin
|
||||
|
||||
sleep(100);
|
||||
result := TDbgLinuxProcess.Create(AFileName, Pid, -1, AOnLog);
|
||||
TDbgLinuxProcess(result).FProcProcess := AProcess;
|
||||
except
|
||||
AProcess.Free;
|
||||
raise;
|
||||
on E: Exception do
|
||||
begin
|
||||
AOnLog(Format('Failed to start process "%s". Errormessage: "%s".',[AFileName, E.Message]), dllInfo);
|
||||
AProcess.Free;
|
||||
end;
|
||||
end;
|
||||
|
||||
TDbgLinuxProcess(result).FProcProcess := AProcess;
|
||||
end;
|
||||
|
||||
function TDbgLinuxProcess.ReadData(const AAdress: TDbgPtr;
|
||||
|
Loading…
Reference in New Issue
Block a user