[Lldb-commits] [lldb] draft: [lldb] Upgrade ValueObject::GetData to return llvm::Expected (PR #130516)
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 10 09:00:34 PDT 2025
================
@@ -247,13 +247,15 @@ static lldb::addr_t GetVTableAddress(Process &process,
// We have an object already read from process memory,
// so just extract VTable pointer from it
- DataExtractor data;
- Status err;
- auto size = valobj.GetData(data, err);
- if (err.Fail() || vbtable_ptr_offset + data.GetAddressByteSize() > size)
+ auto data_or_err = valobj.GetData();
+ if (!data_or_err)
+ return LLDB_INVALID_ADDRESS;
----------------
adrian-prantl wrote:
see comment above
https://github.com/llvm/llvm-project/pull/130516
More information about the lldb-commits
mailing list