Remove IDE_MI_APP_EXIT_OK msg on exit (MI)

Summary: Remove IDE_MI_APP_EXIT_OK msg on exit (MI)

Reviewers: abidh

Reviewed By: abidh

Subscribers: lldb-commits, abidh

Differential Revision: http://reviews.llvm.org/D8446

llvm-svn: 232738
This commit is contained in:
Ilia K 2015-03-19 17:40:15 +00:00
parent 83a6dcc470
commit bb7002d751
3 changed files with 0 additions and 34 deletions

View File

@ -51,9 +51,6 @@ const CMICmnResources::SRsrcTextData CMICmnResources::ms_pResourceId2TextData[]
{IDS_DRIVERMGR_DRIVER_ERR_INIT, "Driver Manager. Driver '%s' (ID:'%s') initialise failed. %s"},
{IDE_MEDIUMSTDERR_NAME, "Stderr"},
{IDE_MEDIUMSTDOUT_NAME, "Stdout"},
{IDE_MI_APP_EXIT_OK, "Program exited OK"},
{IDE_MI_APP_EXIT_WITH_PROBLEM, "Program exited with a problem, see '%s' file"},
{IDE_MI_APP_EXIT_WITH_PROBLEM_NO_LOG, "Program exited with a problem, the application's log file '%s' was disabled"},
{IDE_MI_APP_DESCRIPTION, "Description:\nThe Machine Interface Driver (MI Driver) is a stand alone executable\nthat either be used via "
"a client i.e. Eclipse or directly from the command\nline. It processes MI commands, actions those commands "
"using the internal\ndebugger then forms MI response formatted text which is returned to the\nclient."},

View File

@ -65,10 +65,6 @@ enum
IDE_MEDIUMSTDERR_NAME,
IDE_MEDIUMSTDOUT_NAME,
IDE_MI_APP_EXIT_OK,
IDE_MI_APP_EXIT_WITH_PROBLEM,
IDE_MI_APP_EXIT_WITH_PROBLEM_NO_LOG,
IDE_MI_APP_DESCRIPTION,
IDE_MI_APP_INFORMATION,
IDE_MI_APP_ARG_USAGE,

View File

@ -104,38 +104,11 @@ CMIDriverMgr::Shutdown(void)
// if( --m_clientUsageRefCnt > 0 )
// return MIstatus::success;
bool vbAppExitOk = true;
ClrErrorDescription();
if (!m_bInitialized)
return MIstatus::success;
if (vbAppExitOk)
{
#if _DEBUG
CMICmnStreamStdout::Instance().Write(MIRSRC(IDE_MI_APP_EXIT_OK)); // Both stdout and Log
#else
CMICmnLog::WriteLog(MIRSRC(IDE_MI_APP_EXIT_OK)); // Just to the Log
#endif // _DEBUG
}
else
{
CMICmnLog &rAppLog = CMICmnLog::Instance();
if (rAppLog.GetEnabled())
{
const CMIUtilString msg(
CMIUtilString::Format(MIRSRC(IDE_MI_APP_EXIT_WITH_PROBLEM), CMICmnLogMediumFile::Instance().GetFileName().c_str()));
CMICmnStreamStdout::Instance().Write(msg);
}
else
{
const CMIUtilString msg(
CMIUtilString::Format(MIRSRC(IDE_MI_APP_EXIT_WITH_PROBLEM_NO_LOG), CMICmnLogMediumFile::Instance().GetFileName().c_str()));
CMICmnStreamStdout::Instance().Write(msg);
}
}
m_bInitialized = false;
bool bOk = MIstatus::success;