[Lldb-commits] [lldb] [LLDB][Data Formatters] Calculate average and total time for summary providers within lldb (PR #102708)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 14 17:36:52 PDT 2024
================
@@ -615,7 +615,16 @@ bool ValueObject::GetSummaryAsCString(TypeSummaryImpl *summary_ptr,
m_synthetic_value->UpdateValueIfNeeded(); // the summary might depend on
// the synthetic children being
// up-to-date (e.g. ${svar%#})
- summary_ptr->FormatObject(this, destination, actual_options);
+
+ TargetSP target = GetExecutionContextRef().GetTargetSP();
----------------
clayborg wrote:
`s/target/target_sp/`
We try to make sure we append `_sp` for any variables that are shared pointers and `_up` for any variables that are unique pointers.
https://github.com/llvm/llvm-project/pull/102708
More information about the lldb-commits
mailing list