[all-commits] [llvm/llvm-project] e1933a: [ORC] Initial MachO debugging support (via GDB JIT...

lhames via All-commits all-commits at lists.llvm.org
Sat Nov 13 13:44:02 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e1933a0488a50eb939210808fc895d374570d891
      https://github.com/llvm/llvm-project/commit/e1933a0488a50eb939210808fc895d374570d891
  Author: Lang Hames <lhames at gmail.com>
  Date:   2021-11-13 (Sat, 13 Nov 2021)

  Changed paths:
    M llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
    A llvm/include/llvm/ExecutionEngine/Orc/DebuggerSupportPlugin.h
    M llvm/lib/ExecutionEngine/JITLink/JITLinkMemoryManager.cpp
    M llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
    M llvm/lib/ExecutionEngine/Orc/CMakeLists.txt
    A llvm/lib/ExecutionEngine/Orc/DebuggerSupportPlugin.cpp
    M llvm/lib/ExecutionEngine/Orc/TargetProcess/JITLoaderGDB.cpp
    A llvm/test/ExecutionEngine/JITLink/X86/MachO_gdb_jit_debuginfo_register.s
    R llvm/test/ExecutionEngine/JITLink/X86/MachO_skip_debug_sections.s
    M llvm/tools/llvm-jitlink/llvm-jitlink.cpp

  Log Message:
  -----------
  [ORC] Initial MachO debugging support (via GDB JIT debug registration interface)

This commit adds a new plugin, GDBJITDebugInfoRegistrationPlugin, that checks
for objects containing debug info and registers any debug info found via the
GDB JIT registration API.

To enable this registration without redundantly representing non-debug sections
this plugin synthesizes a new embedded object within a section of the LinkGraph.
An allocation action is used to make the registration call.

Currently MachO only. ELF users can still use the DebugObjectManagerPlugin. The
two are likely to be merged in the near future.




More information about the All-commits mailing list