From fc3f027d33e71b490b293f074e7761b8b76c8096 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Sun, 29 May 2011 04:06:55 +0000 Subject: Don't have the debugger default to ignoring EOF. This is only what the driver (or anything running in a terminal) wants. Not what a UI (Xcode) would want where it creates a debugger per debug window. The current code had an infinite loop after a debug session ended. llvm-svn: 132280 --- lldb/source/Core/Debugger.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'lldb/source/Core/Debugger.cpp') diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index 8c5ebe27a5d..6cbc92ed3aa 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -233,7 +233,6 @@ Debugger::Debugger () : m_input_readers (), m_input_reader_data () { - m_input_comm.SetCloseOnEOF(false); m_command_interpreter_ap->Initialize (); // Always add our default platform to the platform list PlatformSP default_platform_sp (Platform::GetDefaultPlatform()); @@ -255,6 +254,18 @@ Debugger::~Debugger () } +bool +Debugger::GetCloseInputOnEOF () const +{ + return m_input_comm.GetCloseOnEOF(); +} + +void +Debugger::SetCloseInputOnEOF (bool b) +{ + m_input_comm.SetCloseOnEOF(b); +} + bool Debugger::GetAsyncExecution () { -- cgit v1.2.3