[Lldb-commits] [lldb] [lldb][RISCV] Fix return value reading (PR #163931)

Craig Topper via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 23 11:30:06 PDT 2025


================
@@ -602,7 +608,102 @@ GetValObjFromFPRegs(Thread &thread, const RegisterContextSP &reg_ctx,
                                           value, ConstString(""));
   }
   // we should never reach this, but if we do, use the integer registers
-  return GetValObjFromIntRegs(thread, reg_ctx, machine, type_flags, byte_size);
+  return GetValObjFromIntRegs(thread, reg_ctx, machine, compiler_type,
+                              byte_size);
+}
+
+static DataExtractor CopyReturnValueToBuffer(ExecutionContext &exe_ctx,
+                                             RegisterValue &a0_reg_value,
+                                             RegisterValue &a1_reg_value,
+                                             const size_t xlen_byte_size,
+                                             const uint32_t byte_size) {
+
+  DataExtractor a0_extractor;
+  DataExtractor a1_extractor;
+
+  // RISC-V ABI states:
+  // "Aggregates whose total size is no more than XLEN bits
----------------
topperc wrote:

What about aggregates of float or double under the floating point ABIs? Those would be passed in float registers.

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


More information about the lldb-commits mailing list