Replace direct uses of the Debugger's output stream with
uses of the asynchronous stream.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@133076 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Target/ThreadPlanTracer.cpp b/source/Target/ThreadPlanTracer.cpp
index a7003dd..5a5c8b2 100644
--- a/source/Target/ThreadPlanTracer.cpp
+++ b/source/Target/ThreadPlanTracer.cpp
@@ -55,7 +55,7 @@
     if (m_stream_sp.get())
         return m_stream_sp.get();
     else
-        return &(m_thread.GetProcess().GetTarget().GetDebugger().GetOutputStream());
+        return m_thread.GetProcess().GetTarget().GetDebugger().GetAsyncOutputStream().get();
 }
 
 void 
@@ -65,8 +65,11 @@
     bool show_frame_index = false;
     bool show_fullpaths = false;
     
-    m_thread.GetStackFrameAtIndex(0)->Dump (GetLogStream(), show_frame_index, show_fullpaths);
-    GetLogStream()->Printf("\n");
+    Stream *stream = GetLogStream();
+    m_thread.GetStackFrameAtIndex(0)->Dump (stream, show_frame_index, show_fullpaths);
+    stream->Printf("\n");
+    stream->Flush();
+    
 }
 
 bool
@@ -259,4 +262,5 @@
         }
     }
     stream->EOL();
+    stream->Flush();
 }