summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands
diff options
context:
space:
mode:
authorDeepak Panickal <deepak@codeplay.com>2014-01-31 18:48:46 +0000
committerDeepak Panickal <deepak@codeplay.com>2014-01-31 18:48:46 +0000
commit914b8d989b0ea9f0da066773c7ca703eaa013f6b (patch)
tree670cb2885c1a859d2f53f3539c52590675c25267 /lldb/source/Commands
parent322ce39e39186aaea01c7b8ebfa14ff537721ea9 (diff)
downloadbcm5719-llvm-914b8d989b0ea9f0da066773c7ca703eaa013f6b.tar.gz
bcm5719-llvm-914b8d989b0ea9f0da066773c7ca703eaa013f6b.zip
Fixing the Windows build for the changes brought in from the iohandler merge.
llvm-svn: 200565
Diffstat (limited to 'lldb/source/Commands')
-rw-r--r--lldb/source/Commands/CommandObjectGUI.cpp5
-rw-r--r--lldb/source/Commands/CommandObjectType.cpp7
2 files changed, 9 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectGUI.cpp b/lldb/source/Commands/CommandObjectGUI.cpp
index 0fe6cdcd8b0..3d05335e92e 100644
--- a/lldb/source/Commands/CommandObjectGUI.cpp
+++ b/lldb/source/Commands/CommandObjectGUI.cpp
@@ -38,6 +38,7 @@ CommandObjectGUI::~CommandObjectGUI ()
bool
CommandObjectGUI::DoExecute (Args& args, CommandReturnObject &result)
{
+#ifndef LLDB_DISABLE_CURSES
if (args.GetArgumentCount() == 0)
{
Debugger &debugger = m_interpreter.GetDebugger();
@@ -52,5 +53,9 @@ CommandObjectGUI::DoExecute (Args& args, CommandReturnObject &result)
result.SetStatus (eReturnStatusFailed);
}
return true;
+#else
+ result.AppendError("lldb was not build with gui support");
+ return false;
+#endif
}
diff --git a/lldb/source/Commands/CommandObjectType.cpp b/lldb/source/Commands/CommandObjectType.cpp
index caf5429084e..7ee93dea921 100644
--- a/lldb/source/Commands/CommandObjectType.cpp
+++ b/lldb/source/Commands/CommandObjectType.cpp
@@ -195,6 +195,7 @@ public:
{
StreamFileSP error_sp = io_handler.GetErrorStreamFile();
+#ifndef LLDB_DISABLE_PYTHON
ScriptInterpreter *interpreter = m_interpreter.GetScriptInterpreter();
if (interpreter)
{
@@ -309,7 +310,7 @@ public:
error_sp->Printf ("error: script interpreter missing, didn't add python command.\n");
error_sp->Flush();
}
-
+#endif // #ifndef LLDB_DISABLE_PYTHON
io_handler.SetIsDone(true);
}
@@ -482,6 +483,7 @@ protected:
{
StreamFileSP error_sp = io_handler.GetErrorStreamFile();
+#ifndef LLDB_DISABLE_PYTHON
ScriptInterpreter *interpreter = m_interpreter.GetScriptInterpreter();
if (interpreter)
{
@@ -577,9 +579,8 @@ protected:
error_sp->Flush();
}
+#endif // #ifndef LLDB_DISABLE_PYTHON
io_handler.SetIsDone(true);
-
-
}
public:
OpenPOWER on IntegriCloud