================
@@ -640,6 +640,9 @@ void IRMemoryMap::WritePointerToMemory(lldb::addr_t 
process_address,
                                        lldb::addr_t address, Status &error) {
   error.Clear();
 
+  if (auto process_sp = GetProcessWP().lock())
+    address = process_sp->FixAnyAddress(address);
----------------
felipepiovezan wrote:

OHHH, I see the confusion now: note that this is _not_ fixing the "pointer 
_where_ the data is written", but rather it is fixing the "pointer written _to_ 
memory". (see the name of the method: `Write**Pointer**ToMemory`)

https://github.com/llvm/llvm-project/pull/152798
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to