[Lldb-commits] [PATCH] D18335: Fix for missing prompt on Windows

Ted Woodward via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 21 14:27:22 PDT 2016

ted created this revision.
ted added reviewers: clayborg, zturner.
ted added a subscriber: lldb-commits.

On Windows (and possibly other hosts with LLDB_DISABLE_LIBEDIT defined), the (lldb) prompt won't print after async output, like from a breakpoint hit or a step. This patch forces the prompt to be printed out after async output.



Index: source/Core/IOHandler.cpp
--- source/Core/IOHandler.cpp
+++ source/Core/IOHandler.cpp
@@ -773,7 +773,13 @@
         m_editline_ap->PrintAsync(stream, s, len);
+    {
         IOHandler::PrintAsync(stream, s, len);
+        const char *prompt = GetPrompt();
+        if (prompt)
+            IOHandler::PrintAsync(GetOutputStreamFile().get(), prompt, strlen(prompt));
+    }
 // we may want curses to be disabled for some builds

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18335.51230.patch
Type: text/x-patch
Size: 528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160321/7ef0d1bd/attachment.bin>

More information about the lldb-commits mailing list