diff options
Diffstat (limited to 'lldb/source/Core')
-rw-r--r-- | lldb/source/Core/IOHandler.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/lldb/source/Core/IOHandler.cpp b/lldb/source/Core/IOHandler.cpp index 15754a44521..d89bad6acc2 100644 --- a/lldb/source/Core/IOHandler.cpp +++ b/lldb/source/Core/IOHandler.cpp @@ -11,8 +11,10 @@ #include "lldb/lldb-python.h" #include <stdio.h> /* ioctl, TIOCGWINSZ */ -#include <sys/ioctl.h> /* ioctl, TIOCGWINSZ */ +#ifndef _MSC_VER +#include <sys/ioctl.h> /* ioctl, TIOCGWINSZ */ +#endif #include <string> @@ -31,8 +33,10 @@ #include "lldb/Target/RegisterContext.h" #include "lldb/Target/ThreadPlan.h" +#ifndef LLDB_DISABLE_CURSES #include <ncurses.h> #include <panel.h> +#endif using namespace lldb; using namespace lldb_private; @@ -328,9 +332,10 @@ IOHandlerEditline::IOHandlerEditline (Debugger &debugger, { SetPrompt(prompt); + bool use_editline = false; +#ifndef _MSC_VER const int in_fd = GetInputFD(); struct winsize window_size; - bool use_editline = false; if (isatty (in_fd)) { m_interactive = true; @@ -340,6 +345,9 @@ IOHandlerEditline::IOHandlerEditline (Debugger &debugger, use_editline = true; } } +#else + use_editline = true; +#endif if (use_editline) { @@ -588,6 +596,10 @@ IOHandlerEditline::GotEOF() m_editline_ap->Interrupt(); } +// we may want curses to be disabled for some builds +// for instance, windows +#ifndef LLDB_DISABLE_CURSES + #include "lldb/Core/ValueObject.h" #include "lldb/Symbol/VariableList.h" #include "lldb/Target/Target.h" @@ -5274,3 +5286,4 @@ IOHandlerCursesGUI::GotEOF() { } +#endif // #ifndef LLDB_DISABLE_CURSES
\ No newline at end of file |