[Lldb-commits] [lldb] [lldb] Return llvm::Expected from Process::ReadPointerFromMemory (PR #216389)
Felipe de Azevedo Piovezan via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 19 01:14:40 PDT 2026
================
@@ -448,12 +449,15 @@ uint32_t PlatformWindows::DoLoadImage(Process *process,
}
/* Read result */
- lldb::addr_t token = process->ReadPointerFromMemory(injected_result, status);
- if (status.Fail()) {
+ llvm::Expected<lldb::addr_t> token_or_err =
+ process->ReadPointerFromMemory(injected_result);
+ if (!token_or_err) {
error = Status::FromErrorStringWithFormat(
- "LoadLibrary error: could not read the result: %s", status.AsCString());
+ "LoadLibrary error: could not read the result: %s",
+ llvm::toString(token_or_err.takeError()).c_str());
----------------
felipepiovezan wrote:
I believe this was not addressed
https://github.com/llvm/llvm-project/pull/216389
More information about the lldb-commits
mailing list