[Lldb-commits] [PATCH] D124873: [lldb] Session transcript should use the async debugger streams

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue May 3 13:34:06 PDT 2022


JDevlieghere created this revision.
JDevlieghere added a reviewer: mib.
Herald added a project: All.
JDevlieghere requested review of this revision.

When writing out the session transcript, output should be printed to the async debugger streams.


https://reviews.llvm.org/D124873

Files:
  lldb/source/Core/Debugger.cpp


Index: lldb/source/Core/Debugger.cpp
===================================================================
--- lldb/source/Core/Debugger.cpp
+++ lldb/source/Core/Debugger.cpp
@@ -669,9 +669,9 @@
     CommandReturnObject result(debugger_sp->GetUseColor());
     cmd_interpreter.SaveTranscript(result);
     if (result.Succeeded())
-      debugger_sp->GetOutputStream() << result.GetOutputData() << '\n';
+      (*debugger_sp->GetAsyncOutputStream()) << result.GetOutputData() << '\n';
     else
-      debugger_sp->GetErrorStream() << result.GetErrorData() << '\n';
+      (*debugger_sp->GetAsyncOutputStream()) << result.GetErrorData() << '\n';
   }
 
   debugger_sp->Clear();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124873.426820.patch
Type: text/x-patch
Size: 675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220503/e248bf69/attachment-0001.bin>


More information about the lldb-commits mailing list