File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -4435,16 +4435,14 @@ void request_readMemory(const llvm::json::Object &request) {
4435
4435
addr_int += GetSigned (arguments, " offset" , 0 );
4436
4436
const uint64_t count_requested = GetUnsigned (arguments, " count" , 0 );
4437
4437
4438
- lldb::SBAddress addr =
4439
- g_dap.target .ResolveLoadAddress (addr_int);
4440
-
4441
4438
// We also need support reading 0 bytes
4442
4439
// VS Code sends those requests to check if a `memoryReference`
4443
4440
// can be dereferenced.
4444
4441
const uint64_t count_read = std::max<uint64_t >(count_requested, 1 );
4445
4442
std::vector<uint8_t > buf;
4446
4443
buf.resize (count_read);
4447
4444
lldb::SBError error;
4445
+ lldb::SBAddress addr{addr_int, g_dap.target };
4448
4446
size_t count_result =
4449
4447
g_dap.target .ReadMemory (addr, buf.data (), count_read, error);
4450
4448
if (error.Fail ()) {
You can’t perform that action at this time.
0 commit comments