[Lldb-commits] [lldb] r232738 - Remove IDE_MI_APP_EXIT_OK msg on exit (MI)
Ilia K
ki.stfu at gmail.com
Thu Mar 19 10:40:15 PDT 2015
Author: ki.stfu
Date: Thu Mar 19 12:40:15 2015
New Revision: 232738
URL: http://llvm.org/viewvc/llvm-project?rev=232738&view=rev
Log:
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
Modified:
lldb/trunk/tools/lldb-mi/MICmnResources.cpp
lldb/trunk/tools/lldb-mi/MICmnResources.h
lldb/trunk/tools/lldb-mi/MIDriverMgr.cpp
Modified: lldb/trunk/tools/lldb-mi/MICmnResources.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MICmnResources.cpp?rev=232738&r1=232737&r2=232738&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MICmnResources.cpp (original)
+++ lldb/trunk/tools/lldb-mi/MICmnResources.cpp Thu Mar 19 12:40:15 2015
@@ -51,9 +51,6 @@ const CMICmnResources::SRsrcTextData CMI
{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."},
Modified: lldb/trunk/tools/lldb-mi/MICmnResources.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MICmnResources.h?rev=232738&r1=232737&r2=232738&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MICmnResources.h (original)
+++ lldb/trunk/tools/lldb-mi/MICmnResources.h Thu Mar 19 12:40:15 2015
@@ -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,
Modified: lldb/trunk/tools/lldb-mi/MIDriverMgr.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MIDriverMgr.cpp?rev=232738&r1=232737&r2=232738&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MIDriverMgr.cpp (original)
+++ lldb/trunk/tools/lldb-mi/MIDriverMgr.cpp Thu Mar 19 12:40:15 2015
@@ -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;
More information about the lldb-commits
mailing list