[Lldb-commits] [PATCH] D25137: [lldbmi] Fix prompt which can get inserted in the middle of lldb-mi output

Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sat Oct 1 03:46:56 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL283031: [lldb-mi] Fix prompt which can get inserted in the middle of program output in… (authored by dperchik).

Changed prior to commit:
  https://reviews.llvm.org/D25137?vs=73142&id=73193#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D25137

Files:
  lldb/trunk/source/Core/IOHandler.cpp


Index: lldb/trunk/source/Core/IOHandler.cpp
===================================================================
--- lldb/trunk/source/Core/IOHandler.cpp
+++ lldb/trunk/source/Core/IOHandler.cpp
@@ -590,8 +590,8 @@
   else
 #endif
   {
-    const char *prompt = GetPrompt();
 #ifdef _MSC_VER
+    const char *prompt = GetPrompt();
     if (prompt) {
       // Back up over previous prompt using Windows API
       CONSOLE_SCREEN_BUFFER_INFO screen_buffer_info;
@@ -605,9 +605,11 @@
     }
 #endif
     IOHandler::PrintAsync(stream, s, len);
+#ifdef _MSC_VER
     if (prompt)
       IOHandler::PrintAsync(GetOutputStreamFile().get(), prompt,
                             strlen(prompt));
+#endif
   }
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25137.73193.patch
Type: text/x-patch
Size: 704 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20161001/7828467e/attachment.bin>


More information about the lldb-commits mailing list