diff options
Diffstat (limited to 'lldb/source/Commands/CommandObjectGUI.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectGUI.cpp | 5 |
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 } |