summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectGUI.cpp
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/CommandObjectGUI.cpp
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/CommandObjectGUI.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectGUI.cpp5
1 files changed, 5 insertions, 0 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
}
OpenPOWER on IntegriCloud