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

via lldb-commits lldb-commits at lists.llvm.org
Thu May 16 09:13:09 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>()) {
----------------
royitaqi wrote:

Doesn't the default ctor create an empty shared pointer? Here what we want is to create the object, thus `make_shared`.

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


More information about the lldb-commits mailing list