[Lldb-commits] [PATCH] D52618: [Windows] A basic implementation of memory allocations in a debuggee process

Hui Huang via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 26 07:31:04 PDT 2018


Hui added inline comments.


================
Comment at: source/Plugins/Process/Windows/Common/ProcessWindows.cpp:712
 
+lldb::addr_t ProcessWindows::DoAllocateMemory(size_t size, uint32_t permissions,
+                                              Status &error) {
----------------
Looks to me they are handlers to the GDB remote "__m" and "__M" packets.  If the remote is on Windows host, the debug inferior shall be responsible to handle memory allocation/deallocation for JITed codes. (There is a process utility for InferiorCall). Otherwise,  the requests will be answered by remote gdb server with memory region returned.


https://reviews.llvm.org/D52618





More information about the lldb-commits mailing list