diff options
author | Stefan Gränitz <stefan.graenitz@gmail.com> | 2022-11-27 00:05:06 +0100 |
---|---|---|
committer | Stefan Gränitz <stefan.graenitz@gmail.com> | 2022-11-27 11:45:26 +0100 |
commit | c1a419c6cf6db04008b416a58332777fb6887e2d (patch) | |
tree | d8fa19791af5422e6b24afd6877ae424a2cd00a4 /lldb | |
parent | 233a8895cfba6612d8fc5abe76c862d23f51d52b (diff) | |
download | llvm-c1a419c6cf6db04008b416a58332777fb6887e2d.zip llvm-c1a419c6cf6db04008b416a58332777fb6887e2d.tar.gz llvm-c1a419c6cf6db04008b416a58332777fb6887e2d.tar.bz2 |
[lldb][JITLoaderGDB] Resolve __jit_debug_register_code as eSymbolTypeCode
Fix failling jit-loader tests with BUILD_SHARED_LIBS as discussed in https://github.com/llvm/llvm-project/issues/56085
Reviewed By: mgorny
Differential Revision: https://reviews.llvm.org/D138750
Diffstat (limited to 'lldb')
-rw-r--r-- | lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp | 2 | ||||
-rw-r--r-- | lldb/test/Shell/Breakpoint/jit-loader_jitlink_elf.test | 2 | ||||
-rw-r--r-- | lldb/test/Shell/Breakpoint/jit-loader_rtdyld_elf.test | 2 |
3 files changed, 1 insertions, 5 deletions
diff --git a/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp b/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp index 3825c0b..7b810c0 100644 --- a/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp +++ b/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp @@ -190,7 +190,7 @@ void JITLoaderGDB::SetJITBreakpoint(lldb_private::ModuleList &module_list) { __FUNCTION__); addr_t jit_addr = GetSymbolAddress( - module_list, ConstString("__jit_debug_register_code"), eSymbolTypeAny); + module_list, ConstString("__jit_debug_register_code"), eSymbolTypeCode); if (jit_addr == LLDB_INVALID_ADDRESS) return; diff --git a/lldb/test/Shell/Breakpoint/jit-loader_jitlink_elf.test b/lldb/test/Shell/Breakpoint/jit-loader_jitlink_elf.test index 86c200f..bbb4830 100644 --- a/lldb/test/Shell/Breakpoint/jit-loader_jitlink_elf.test +++ b/lldb/test/Shell/Breakpoint/jit-loader_jitlink_elf.test @@ -1,6 +1,4 @@ # REQUIRES: target-x86_64 -# https://github.com/llvm/llvm-project/issues/56085 -# XFAIL: system-freebsd # XFAIL: system-windows # JITLink is the Orc-specific JIT linker implementation. diff --git a/lldb/test/Shell/Breakpoint/jit-loader_rtdyld_elf.test b/lldb/test/Shell/Breakpoint/jit-loader_rtdyld_elf.test index aaefab8..8c289e2 100644 --- a/lldb/test/Shell/Breakpoint/jit-loader_rtdyld_elf.test +++ b/lldb/test/Shell/Breakpoint/jit-loader_rtdyld_elf.test @@ -1,6 +1,4 @@ # REQUIRES: target-x86_64 -# https://github.com/llvm/llvm-project/issues/56085 -# XFAIL: system-freebsd # XFAIL: system-windows # RuntimeDyld can be used to link and load emitted code for both, MCJIT and Orc. |