forked from OSchip/llvm-project
Fix error handling in CMIDriver::DoMainLoop after r215223 (MI)
llvm-svn: 232713
This commit is contained in:
parent
87b1302a84
commit
30a4ba1721
|
@ -529,18 +529,19 @@ CMIDriver::DoMainLoop(void)
|
||||||
if (!StartWorkerThreads())
|
if (!StartWorkerThreads())
|
||||||
return MIstatus::failure;
|
return MIstatus::failure;
|
||||||
|
|
||||||
// App is not quitting currently
|
|
||||||
m_bExitApp = false;
|
|
||||||
|
|
||||||
if (HaveExecutableFileNamePathOnCmdLine())
|
if (HaveExecutableFileNamePathOnCmdLine())
|
||||||
{
|
{
|
||||||
if (!LocalDebugSessionStartupExecuteCommands())
|
if (!LocalDebugSessionStartupExecuteCommands())
|
||||||
{
|
{
|
||||||
|
StopWorkerThreads();
|
||||||
SetErrorDescription(MIRSRC(IDS_MI_INIT_ERR_LOCAL_DEBUG_SESSION));
|
SetErrorDescription(MIRSRC(IDS_MI_INIT_ERR_LOCAL_DEBUG_SESSION));
|
||||||
return MIstatus::failure;
|
return MIstatus::failure;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// App is not quitting currently
|
||||||
|
m_bExitApp = false;
|
||||||
|
|
||||||
// While the app is active
|
// While the app is active
|
||||||
while (!m_bExitApp)
|
while (!m_bExitApp)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue