[Lldb-commits] [lldb] [lldb] Unify DW_OP_deref and DW_OP_deref_size implementations (PR #169587)
David Peixotto via lldb-commits
lldb-commits at lists.llvm.org
Mon Dec 1 10:17:00 PST 2025
================
@@ -861,84 +861,159 @@ ResolveLoadAddress(ExecutionContext *exe_ctx, lldb::ModuleSP &module_sp,
return load_addr;
}
-static llvm::Error Evaluate_DW_OP_deref(DWARFExpression::Stack &stack,
- ExecutionContext *exe_ctx,
- lldb::ModuleSP module_sp,
- Process *process) {
- if (stack.empty())
- return llvm::createStringError("expression stack empty for DW_OP_deref");
-
- const Value::ValueType value_type = stack.back().GetValueType();
+/// Helper function to move common code used to load sized data from a uint8_t
+/// buffer.
+///
+/// \param addr_bytes uint8_t buffer containg raw data
+/// \param size_addr_bytes how large is the underlying raw data
+/// \param byte_order what is the byter order of the underlyig data
+/// \param size How much of the underlying data we want to use
+/// \return The underlying data converted into a Scalar
----------------
dmpots wrote:
- [x] Reformatted and punctuated
https://github.com/llvm/llvm-project/pull/169587
More information about the lldb-commits
mailing list