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

via lldb-commits lldb-commits at lists.llvm.org
Fri May 17 10:27:09 PDT 2024


================
@@ -571,6 +571,15 @@ SBStructuredData SBCommandInterpreter::GetStatistics() {
   return data;
 }
 
+SBStructuredData SBCommandInterpreter::GetTranscript() {
+  LLDB_INSTRUMENT_VA(this);
+
+  SBStructuredData data;
+  if (IsValid())
+    data.m_impl_up->SetObjectSP(m_opaque_ptr->GetTranscript());
----------------
royitaqi wrote:

Made a (deep) copy in the latest commit. Added test to verify that the user's copy isn't modified when more commands are run in the debugger.

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


More information about the lldb-commits mailing list