From c62338e89dcdf84b6584ea963f40e145e26fd19d Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Tue, 6 May 2014 18:54:53 +0000 Subject: [PATCH] control-D on empty line to quit lldb stopped working in Release builds on MacOSX. llvm-svn: 208117 --- lldb/source/Host/common/Editline.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lldb/source/Host/common/Editline.cpp b/lldb/source/Host/common/Editline.cpp index f38f70bc40af..0b5494440277 100644 --- a/lldb/source/Host/common/Editline.cpp +++ b/lldb/source/Host/common/Editline.cpp @@ -790,7 +790,8 @@ Editline::GetCharFromInputFileCallback (EditLine *e, char *c) line_info->buffer == line_info->cursor && line_info->cursor == line_info->lastchar) { - ch = EOF; + editline->m_got_eof = true; + break; } }