================
@@ -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:
safe safety concern here
https://github.com/llvm/llvm-project/pull/216389
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits