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.

http://reviews.llvm.org/D18335

Files:
  source/Core/IOHandler.cpp

Index: source/Core/IOHandler.cpp
===================================================================
--- source/Core/IOHandler.cpp
+++ source/Core/IOHandler.cpp
@@ -773,7 +773,13 @@
         m_editline_ap->PrintAsync(stream, s, len);
     else
 #endif
+    {
         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


Index: source/Core/IOHandler.cpp
===================================================================
--- source/Core/IOHandler.cpp
+++ source/Core/IOHandler.cpp
@@ -773,7 +773,13 @@
         m_editline_ap->PrintAsync(stream, s, len);
     else
 #endif
+    {
         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
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to