[Lldb-commits] [lldb] [lldb] Add libstdcpp atomic data formatters (PR #174218)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 29 04:50:01 PST 2026


================
@@ -416,19 +457,18 @@ bool lldb_private::formatters::LibStdcppSmartPointerSummaryProvider(
 
   DumpCxxSmartPtrPointerSummary(stream, *ptr_sp, options);
 
-  ValueObjectSP pi_sp = valobj_sp->GetChildAtNamePath({"_M_refcount", "_M_pi"});
+  auto pi_sp = GetReferenceCountPointer(*valobj_sp, is_atomic_child);
   if (!pi_sp)
     return false;
-
-  bool success;
+  bool success = false;
----------------
Michael137 wrote:

Lets avoid these changes since it's an output parameter that is always initialized by `GetValueAsUnsigned` (I don't mind initializing these anyway, but they're unrelated to the patch, so prefer to not include these changes)

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


More information about the lldb-commits mailing list