mgorny created this revision. mgorny added a project: LLDB. Add missing linkage of the lldbPluginUnwindAssemblyX86 to LLVMMCDisasm library. This fixes the following build failure when linking against shared libraries:
lib64/liblldbPluginUnwindAssemblyX86.a(x86AssemblyInspectionEngine.cpp.o):x86AssemblyInspectionEngine.cpp:function lldb_private::x86AssemblyInspectionEngine::instruction_length(unsigned char*, int&): error: undefined reference to 'LLVMDisasmInstruction' lib64/liblldbPluginUnwindAssemblyX86.a(x86AssemblyInspectionEngine.cpp.o):x86AssemblyInspectionEngine.cpp:function lldb_private::x86AssemblyInspectionEngine::~x86AssemblyInspectionEngine(): error: undefined reference to 'LLVMDisasmDispose' lib64/liblldbPluginUnwindAssemblyX86.a(x86AssemblyInspectionEngine.cpp.o):x86AssemblyInspectionEngine.cpp:function lldb_private::x86AssemblyInspectionEngine::x86AssemblyInspectionEngine(lldb_private::ArchSpec const&): error: undefined reference to 'LLVMCreateDisasm' Repository: rL LLVM https://reviews.llvm.org/D31369 Files: source/Plugins/UnwindAssembly/x86/CMakeLists.txt Index: source/Plugins/UnwindAssembly/x86/CMakeLists.txt =================================================================== --- source/Plugins/UnwindAssembly/x86/CMakeLists.txt +++ source/Plugins/UnwindAssembly/x86/CMakeLists.txt @@ -10,4 +10,5 @@ LINK_COMPONENTS Support MC + MCDisassembler )
Index: source/Plugins/UnwindAssembly/x86/CMakeLists.txt =================================================================== --- source/Plugins/UnwindAssembly/x86/CMakeLists.txt +++ source/Plugins/UnwindAssembly/x86/CMakeLists.txt @@ -10,4 +10,5 @@ LINK_COMPONENTS Support MC + MCDisassembler )
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits