[Lldb-commits] [lldb] [lldb] Fix GetExpressionPath for vector registers (PR #169210)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 1 08:45:14 PST 2025


================
@@ -443,3 +443,15 @@ void ValueObjectSynthetic::SetLanguageFlags(uint64_t flags) {
   else
     this->ValueObject::SetLanguageFlags(flags);
 }
+
+void ValueObjectSynthetic::GetExpressionPath(Stream &stream,
+                                             GetExpressionPathFormat epformat) {
+  if (const lldb::ValueType obj_value_type = GetValueType();
+      IsSynthetic() && (obj_value_type == lldb::eValueTypeRegister ||
+                        obj_value_type == lldb::eValueTypeRegisterSet)) {
+
+    if (const lldb::ValueObjectSP raw_value = GetNonSyntheticValue())
----------------
adrian-prantl wrote:

Can you add a comment here to explain why this is being done?

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


More information about the lldb-commits mailing list