[Lldb-commits] [lldb] [LLDB] Add more helper functions to ValueObject class. (PR #87197)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 1 12:59:47 PDT 2024
================
@@ -618,6 +631,24 @@ class ValueObject {
virtual lldb::ValueObjectSP CastPointerType(const char *name,
lldb::TypeSP &type_sp);
+ /// Return the target load address assocaited with this value object.
+ lldb::addr_t GetLoadAddress();
----------------
clayborg wrote:
Is this function just a copy of the contents of `lldb::addr_t SBValue::GetLoadAddress()`? If so, we should also fix that function to call this function. Might be nice to have this return `std::optional<lldb::addr_t>` for internal use as if the `ValueObject` is a variable that is in a register, this will need to return `LLDB_INVALID_ADDRESS`.
https://github.com/llvm/llvm-project/pull/87197
More information about the lldb-commits
mailing list