[Lldb-commits] [lldb] [lldb] Add GDB remote register vector types (PR #217128)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 24 06:07:23 PDT 2026


================
@@ -120,5 +121,8 @@ void lldb_private::DoDumpRegisterInfo(
     std::string enumerators = flags_type->DumpEnums(terminal_width);
     if (enumerators.size())
       strm << "\n\n" << enumerators;
+  } else if (auto *vector_type =
+                 llvm::dyn_cast_if_present<RegisterTypeVector>(register_type)) {
+    strm.Printf("\n\n  Vector elements: %u", vector_type->GetCount());
----------------
DavidSpickett wrote:

(not read the whole PR yet)

Either add tests for this or remove it and add register info compatibility later.

I wonder what we can do about showing elements here, if an element can itself be another type that might get tricky.

I don't mind it just being number of elements for now though. You can test it in the API test file easily.

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


More information about the lldb-commits mailing list