diff options
author | Caroline Tice <ctice@apple.com> | 2011-06-15 19:35:17 +0000 |
---|---|---|
committer | Caroline Tice <ctice@apple.com> | 2011-06-15 19:35:17 +0000 |
commit | 15356e7f4f8eb43cb290d0d8cb78bb5d08688310 (patch) | |
tree | c6c851e8e6817da3016aa4d5117714c05b906d4a /lldb/source/Target/ThreadPlanTracer.cpp | |
parent | 59d8c6071926f1510a0c4dbddba6e9d9f5ef544a (diff) | |
download | bcm5719-llvm-15356e7f4f8eb43cb290d0d8cb78bb5d08688310.tar.gz bcm5719-llvm-15356e7f4f8eb43cb290d0d8cb78bb5d08688310.zip |
Replace direct uses of the Debugger's output stream with
uses of the asynchronous stream.
llvm-svn: 133076
Diffstat (limited to 'lldb/source/Target/ThreadPlanTracer.cpp')
-rw-r--r-- | lldb/source/Target/ThreadPlanTracer.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lldb/source/Target/ThreadPlanTracer.cpp b/lldb/source/Target/ThreadPlanTracer.cpp index a7003dd0e0e..5a5c8b258d0 100644 --- a/lldb/source/Target/ThreadPlanTracer.cpp +++ b/lldb/source/Target/ThreadPlanTracer.cpp @@ -55,7 +55,7 @@ ThreadPlanTracer::GetLogStream () 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 @@ ThreadPlanTracer::Log() 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 @@ ThreadPlanAssemblyTracer::Log () } } stream->EOL(); + stream->Flush(); } |