[Lldb-commits] [lldb] [lldb] Support reading DW_OP_piece from file address (PR #94026)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 3 01:49:26 PDT 2024
================
@@ -2153,26 +2152,42 @@ bool DWARFExpression::Evaluate(
}
break;
- case Value::ValueType::FileAddress:
- case Value::ValueType::HostAddress:
- if (error_ptr) {
- lldb::addr_t addr = curr_piece_source_value.GetScalar().ULongLong(
- LLDB_INVALID_ADDRESS);
+ case Value::ValueType::FileAddress: {
----------------
labath wrote:
I'm wondering if it would be possible to use a single implementation for these two. Target::ReadMemory will call Process::ReadMemory if it was a process available (and the `force_live_memory` precisely so that one can require this behavior).
https://github.com/llvm/llvm-project/pull/94026
More information about the lldb-commits
mailing list