[all-commits] [llvm/llvm-project] 2e7ec4: [lldb] Add AllocateMemory/DeallocateMemory to the ...

Peter S. Housel via All-commits all-commits at lists.llvm.org
Thu Jul 15 15:45:55 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e7ec447cc7eab89a72413ad91a897049f551c56
      https://github.com/llvm/llvm-project/commit/2e7ec447cc7eab89a72413ad91a897049f551c56
  Author: Peter S. Housel <housel at acm.org>
  Date:   2021-07-16 (Fri, 16 Jul 2021)

  Changed paths:
    M lldb/bindings/interface/SBProcess.i
    M lldb/include/lldb/API/SBProcess.h
    M lldb/source/API/SBProcess.cpp
    M lldb/test/API/python_api/process/TestProcessAPI.py
    M lldb/test/API/python_api/process/main.cpp

  Log Message:
  -----------
  [lldb] Add AllocateMemory/DeallocateMemory to the SBProcess API

This change adds AllocateMemory and DeallocateMemory methods to the SBProcess
API, so that clients can allocate and deallocate memory blocks within the
process being debugged (for storing JIT-compiled code or other uses).

(I am developing a debugger + REPL using the API; it will need to store
JIT-compiled code within the target.)

Reviewed By: clayborg, jingham

Differential Revision: https://reviews.llvm.org/D105389




More information about the All-commits mailing list