Commit e5a65d58 authored by hjk's avatar hjk
Browse files

Debugger: Handle startup problems more gracefully



Task-number: QTCREATORBUG-10598
Change-Id: Ia22b46da87b43c807acc11747294609d88c0e183
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 5c1b9945
......@@ -634,7 +634,8 @@ class Dumper(DumperBase):
launchInfo.SetEnvironmentEntries(environmentList, False)
self.process = self.target.Launch(launchInfo, error)
if not error.Success():
self.report('state="inferiorrunfailed"')
self.reportError(error)
self.report('state="enginerunfailed"')
return
self.report('pid="%s"' % self.process.GetProcessID())
self.report('state="enginerunandinferiorrunok"')
......
......@@ -1025,6 +1025,8 @@ void LldbEngine::refreshState(const GdbMi &reportedState)
notifyEngineSetupOk();
else if (newState == "enginesetupfailed")
notifyEngineSetupFailed();
else if (newState == "enginerunfailed")
notifyEngineRunFailed();
else if (newState == "stopped")
notifyInferiorSpontaneousStop();
else if (newState == "inferiorsetupok")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment