[Lldb-commits] [lldb] Add new Python API `SBCommandInterpreter::GetTranscript()` (PR #90703)

via lldb-commits lldb-commits at lists.llvm.org
Wed May 15 19:20:34 PDT 2024


================
@@ -1891,6 +1893,12 @@ bool CommandInterpreter::HandleCommand(const char *command_line,
 
   m_transcript_stream << "(lldb) " << command_line << '\n';
 
+  // The same `transcript_item` will be used below to add output and error of
+  // the command.
+  auto transcript_item = std::make_shared<StructuredData::Dictionary>();
----------------
jeffreytan81 wrote:

You are not sharing it. Use `std::make_unique`

https://github.com/llvm/llvm-project/pull/90703


More information about the lldb-commits mailing list