Skip to content

Commit

Permalink
Remove redundant code from lldb-mi.
Browse files Browse the repository at this point in the history
After removing the ability of using lldb-mi as 'lldb', a lot of code has become redundant. This commit removes some of that code.
Note: Some files are being removed. The cmake file has been updated. Please update xcode project accordingly.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@233083 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
abidh committed Mar 24, 2015
1 parent 66c6d96 commit ec66365
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 1,599 deletions.
2 changes: 0 additions & 2 deletions tools/lldb-mi/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
set(LLVM_NO_RTTI 1)

set(LLDB_MI_SOURCES
Driver.cpp
MICmdArgContext.cpp
MICmdArgSet.cpp
MICmdArgValBase.cpp
Expand Down Expand Up @@ -74,7 +73,6 @@ set(LLDB_MI_SOURCES
MIUtilSystemLinux.cpp
MIUtilSystemOsx.cpp
MIUtilSystemWindows.cpp
MIUtilTermios.cpp
MIUtilThreadBaseStd.cpp
MIUtilVariant.cpp
Platform.cpp
Expand Down
1,270 changes: 0 additions & 1,270 deletions tools/lldb-mi/Driver.cpp

This file was deleted.

145 changes: 0 additions & 145 deletions tools/lldb-mi/Driver.h

This file was deleted.

15 changes: 0 additions & 15 deletions tools/lldb-mi/MIDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "lldb/API/SBError.h"

// In-house headers:
#include "Driver.h"
#include "MIDriver.h"
#include "MICmnResources.h"
#include "MICmnLog.h"
Expand Down Expand Up @@ -311,20 +310,6 @@ CMIDriver::GetError(void) const
return GetErrorDescription();
}

//++ ------------------------------------------------------------------------------------
// Details: Call *this driver to resize the console window.
// Type: Overridden.
// Args: vTermWidth - (R) New window column size.
// Return: MIstatus::success - Functional succeeded.
// MIstatus::failure - Functional failed.
// Throws: None.
//--
void
CMIDriver::DoResizeWindow(const uint32_t vTermWidth)
{
GetTheDebugger().SetTerminalWidth(vTermWidth);
}

//++ ------------------------------------------------------------------------------------
// Details: Call *this driver to return it's debugger.
// Type: Overridden.
Expand Down
1 change: 0 additions & 1 deletion tools/lldb-mi/MIDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ class CMIDriver : public CMICmnBase,
virtual bool DoInitialize(void);
virtual bool DoShutdown(void);
virtual bool DoMainLoop(void);
virtual void DoResizeWindow(const uint32_t vWindowSizeWsCol);
virtual lldb::SBError DoParseArgs(const int argc, const char *argv[], FILE *vpStdOut, bool &vwbExiting);
virtual CMIUtilString GetError(void) const;
virtual const CMIUtilString &GetName(void) const;
Expand Down
1 change: 0 additions & 1 deletion tools/lldb-mi/MIDriverMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
// In house headers:
#include "MICmnConfig.h"
#include "Platform.h" // Define signals - CODETAG_IOR_SIGNALS
#include "Driver.h"
#include "MIDriverMgr.h"
#include "MIDriver.h"
#include "MICmnResources.h"
Expand Down
27 changes: 0 additions & 27 deletions tools/lldb-mi/MIDriverMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include "MICmnLog.h"
#include "MICmnLogMediumFile.h"
#include "MIDriver.h"
#include "MIUtilTermios.h"
#include "MICmnStreamStdout.h"
#include "MIUtilSingletonHelper.h"

Expand Down Expand Up @@ -70,11 +69,6 @@ CMIDriverMgr::Initialize(void)
MI::ModuleInit<CMICmnLog>(IDS_MI_INIT_ERR_LOG, bOk, errMsg);
MI::ModuleInit<CMICmnResources>(IDS_MI_INIT_ERR_RESOURCES, bOk, errMsg);

if (bOk)
{
MIUtilTermios::StdinTermiosSet();
}

m_bInitialized = bOk;

if (!bOk)
Expand Down Expand Up @@ -116,7 +110,6 @@ CMIDriverMgr::Shutdown(void)

// Tidy up
UnregisterDriverAll();
MIUtilTermios::StdinTermiosReset();

// Note shutdown order is important here
MI::ModuleShutdown<CMICmnResources>(IDE_MI_SHTDWN_ERR_RESOURCES, bOk, errMsg);
Expand Down Expand Up @@ -315,26 +308,6 @@ CMIDriverMgr::DriverMainLoop(void)
return MIstatus::success;
}

//++ ------------------------------------------------------------------------------------
// Details: Call *this driver to resize the console window.
// Type: Method.
// Args: vWindowSizeWsCol - (R) New window column size.
// Return: MIstatus::success - Functional succeeded.
// MIstatus::failure - Functional failed.
// Throws: None.
//--
void
CMIDriverMgr::DriverResizeWindow(const uint32_t vWindowSizeWsCol)
{
if (m_pDriverCurrent != nullptr)
return m_pDriverCurrent->DoResizeWindow(vWindowSizeWsCol);
else
{
const CMIUtilString errMsg(CMIUtilString::Format(MIRSRC(IDS_DRIVER_ERR_CURRENT_NOT_SET)));
CMICmnStreamStdout::Instance().Write(errMsg, true);
}
}

//++ ------------------------------------------------------------------------------------
// Details: Get the current driver to validate executable command line arguments.
// Type: Method.
Expand Down
2 changes: 0 additions & 2 deletions tools/lldb-mi/MIDriverMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ class CMIDriverMgr : public CMICmnBase, public MI::ISingleton<CMIDriverMgr>
virtual bool DoInitialize(void) = 0;
virtual bool DoShutdown(void) = 0;
virtual bool DoMainLoop(void) = 0;
virtual void DoResizeWindow(const uint32_t vWindowSizeWsCol) = 0;
virtual lldb::SBError DoParseArgs(const int argc, const char *argv[], FILE *vpStdOut, bool &vwbExiting) = 0;
virtual CMIUtilString GetError(void) const = 0;
virtual const CMIUtilString &GetName(void) const = 0;
Expand Down Expand Up @@ -90,7 +89,6 @@ class CMIDriverMgr : public CMICmnBase, public MI::ISingleton<CMIDriverMgr>
//
// MI Proxy fn to current specified working driver
bool DriverMainLoop(void);
void DriverResizeWindow(const uint32_t vWindowSizeWsCol);
bool DriverParseArgs(const int argc, const char *argv[], FILE *vpStdOut, bool &vwbExiting);
CMIUtilString DriverGetError(void) const;
CMIUtilString DriverGetName(void) const;
Expand Down
59 changes: 0 additions & 59 deletions tools/lldb-mi/MIUtilTermios.cpp

This file was deleted.

18 changes: 0 additions & 18 deletions tools/lldb-mi/MIUtilTermios.h

This file was deleted.

Loading

0 comments on commit ec66365

Please sign in to comment.