[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


================
@@ -135,7 +136,8 @@ CommandInterpreter::CommandInterpreter(Debugger &debugger,
       m_skip_lldbinit_files(false), m_skip_app_init_files(false),
       m_comment_char('#'), m_batch_command_mode(false),
       m_truncation_warning(eNoOmission), m_max_depth_warning(eNoOmission),
-      m_command_source_depth(0) {
+      m_command_source_depth(0),
+      m_transcript(std::make_shared<StructuredData::Array>()) {
----------------
jeffreytan81 wrote:

This looks weird. Simply use default constructor is fine: `m_transcript()`

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


More information about the lldb-commits mailing list