[Lldb-commits] [lldb] [LLDB] Expose and display GDB remote register union values (PR #224147)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 23 14:58:44 PDT 2026


================
@@ -763,6 +763,14 @@ void FormatManager::LoadSystemFormatters() {
   sys_category_sp->AddTypeSummary("OSType", eFormatterMatchExact,
                                   ostype_summary);
 
+  TypeSummaryImpl::Flags register_union_flags;
+  register_union_flags.SetShowMembersOneLiner(true);
+  // One rule covers all generated register union types without accumulating a
+  // formatter entry for every target description LLDB reads.
+  AddStringSummary(sys_category_sp, "",
+                   R"(^__lldb_register_union_[0-9]+_[0-9]+$)",
+                   register_union_flags, true);
+
----------------
clayborg wrote:

Why do we need a special summary string for these? Can we just use the default format display that ValueObjects can generate?

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


More information about the lldb-commits mailing list