================ @@ -640,6 +640,13 @@ void IRMemoryMap::WritePointerToMemory(lldb::addr_t process_address, lldb::addr_t address, Status &error) { error.Clear(); + /// Only ask the Process to fix the address if this address belongs to the + /// process (host allocations are stored in m_data). + if (auto it = FindAllocation(process_address, 1); + it != m_allocations.end() && it->second.m_data.GetByteSize() == 0) + if (auto process_sp = GetProcessWP().lock()) + address = process_sp->FixAnyAddress(address); ---------------- DavidSpickett wrote:
Also could we have an overlap between host and debugee memory addresses? I suspect the answer is "yes but not in the scenario I'm fixing". As if we were going to write anything to the debugee, there would be no host allocatons in m_data. Add a comment to state that if so. https://github.com/llvm/llvm-project/pull/153585 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits