diff options
| author | Ed Maste <emaste@freebsd.org> | 2014-03-05 13:57:24 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@freebsd.org> | 2014-03-05 13:57:24 +0000 |
| commit | 32aa12b86c213254c1ea2af1e07c8f9926939485 (patch) | |
| tree | 3e9c4ea6efa7ebc350c61f094385343c54d9ff36 /lldb/source | |
| parent | 792d4b1559b14c7c8b11e7378cd7320454a82bd4 (diff) | |
| download | bcm5719-llvm-32aa12b86c213254c1ea2af1e07c8f9926939485.tar.gz bcm5719-llvm-32aa12b86c213254c1ea2af1e07c8f9926939485.zip | |
Build JITLoader on FreeBSD also
llvm-svn: 202980
Diffstat (limited to 'lldb/source')
| -rw-r--r-- | lldb/source/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | lldb/source/Plugins/JITLoader/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | lldb/source/Plugins/Makefile | 1 | ||||
| -rw-r--r-- | lldb/source/lldb.cpp | 6 |
4 files changed, 6 insertions, 4 deletions
diff --git a/lldb/source/CMakeLists.txt b/lldb/source/CMakeLists.txt index de5c05c9625..9e89f4e17ec 100644 --- a/lldb/source/CMakeLists.txt +++ b/lldb/source/CMakeLists.txt @@ -114,6 +114,7 @@ if ( CMAKE_SYSTEM_NAME MATCHES "FreeBSD" ) lldbPluginProcessFreeBSD lldbPluginProcessPOSIX lldbPluginProcessElfCore + lldbPluginJITLoaderGDB ) endif () diff --git a/lldb/source/Plugins/JITLoader/CMakeLists.txt b/lldb/source/Plugins/JITLoader/CMakeLists.txt index 0f005572032..dc9533e2ba7 100644 --- a/lldb/source/Plugins/JITLoader/CMakeLists.txt +++ b/lldb/source/Plugins/JITLoader/CMakeLists.txt @@ -1,3 +1,3 @@ -if (CMAKE_SYSTEM_NAME MATCHES "Linux") +if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR CMAKE_SYSTEM_NAME MATCHES "Linux") add_subdirectory(GDB) endif() diff --git a/lldb/source/Plugins/Makefile b/lldb/source/Plugins/Makefile index dd7b6ad06f3..099be354a0f 100644 --- a/lldb/source/Plugins/Makefile +++ b/lldb/source/Plugins/Makefile @@ -43,6 +43,7 @@ endif ifneq (,$(filter $(HOST_OS), FreeBSD GNU/kFreeBSD)) DIRS += Process/FreeBSD Process/POSIX DIRS += Process/elf-core +DIRS += JITLoader/GDB endif include $(LLDB_LEVEL)/Makefile diff --git a/lldb/source/lldb.cpp b/lldb/source/lldb.cpp index c0a8545f504..23ae61b7b62 100644 --- a/lldb/source/lldb.cpp +++ b/lldb/source/lldb.cpp @@ -68,11 +68,11 @@ #if defined(__linux__) || defined(__FreeBSD__) #include "Plugins/Process/elf-core/ProcessElfCore.h" +#include "Plugins/JITLoader/GDB/JITLoaderGDB.h" #endif #if defined (__linux__) #include "Plugins/Process/Linux/ProcessLinux.h" -#include "Plugins/JITLoader/GDB/JITLoaderGDB.h" #endif #if defined (__FreeBSD__) @@ -150,7 +150,6 @@ lldb_private::Initialize () // Linux hosted plugins //---------------------------------------------------------------------- ProcessLinux::Initialize(); - JITLoaderGDB::Initialize(); #endif #if defined (__FreeBSD__) ProcessFreeBSD::Initialize(); @@ -158,6 +157,7 @@ lldb_private::Initialize () #if defined(__linux__) || defined(__FreeBSD__) ProcessElfCore::Initialize(); + JITLoaderGDB::Initialize(); #endif //---------------------------------------------------------------------- // Platform agnostic plugins @@ -233,7 +233,6 @@ lldb_private::Terminate () #if defined (__linux__) ProcessLinux::Terminate(); - JITLoaderGDB::Terminate(); #endif #if defined (__FreeBSD__) @@ -242,6 +241,7 @@ lldb_private::Terminate () #if defined(__linux__) || defined(__FreeBSD__) ProcessElfCore::Terminate(); + JITLoaderGDB::Terminate(); #endif ProcessGDBRemote::Terminate(); DynamicLoaderStatic::Terminate(); |

