diff options
| author | Greg Clayton <gclayton@apple.com> | 2011-07-08 04:11:42 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2011-07-08 04:11:42 +0000 |
| commit | df0b7d5c31593ed4a4c92a4ccca00af4343351fb (patch) | |
| tree | 06642492387d645f72d1dccf1e9b8aad2e15b58b /lldb/source/lldb.cpp | |
| parent | 0d9fc764d28d08aca4829921b24edd063f6577d6 (diff) | |
| download | bcm5719-llvm-df0b7d5c31593ed4a4c92a4ccca00af4343351fb.tar.gz bcm5719-llvm-df0b7d5c31593ed4a4c92a4ccca00af4343351fb.zip | |
LLDB now has a Kernel dynamic linker that can detect where kexts are
loaded. It locks onto *-apple-darwin binaries where the binary has
a "__KLD" segment. Soon I will modify the lldb_private::ObjectFile
class to return an executable type which will be an enum with values
something like:
eObjectFileTypeUserExectable,
eObjectFileTypeUserSharedLibrary,
eObjectFileTypeKernelExectable,
eObjectFileTypeKernelSharedLibrary,
eObjectFileTypeObjectFile,
eObjectFileTypeCoreFile
But for now we look at the section since a user and kernel mach-o
executable have the same mach-o file type.
llvm-svn: 134682
Diffstat (limited to 'lldb/source/lldb.cpp')
| -rw-r--r-- | lldb/source/lldb.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/lldb.cpp b/lldb/source/lldb.cpp index de6f1698094..97c9ec46be5 100644 --- a/lldb/source/lldb.cpp +++ b/lldb/source/lldb.cpp @@ -38,6 +38,7 @@ #if defined (__APPLE__) #include "Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.h" +#include "Plugins/DynamicLoader/MacOSX-Kernel/DynamicLoaderMacOSXKernel.h" #include "Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.h" #include "Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV1.h" #include "Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h" @@ -94,6 +95,7 @@ lldb_private::Initialize () // Apple/Darwin hosted plugins //---------------------------------------------------------------------- DynamicLoaderMacOSXDYLD::Initialize(); + DynamicLoaderMacOSXKernel::Initialize(); SymbolFileDWARFDebugMap::Initialize(); ItaniumABILanguageRuntime::Initialize(); AppleObjCRuntimeV2::Initialize(); @@ -158,6 +160,7 @@ lldb_private::Terminate () #if defined (__APPLE__) DynamicLoaderMacOSXDYLD::Terminate(); + DynamicLoaderMacOSXKernel::Terminate(); SymbolFileDWARFDebugMap::Terminate(); ItaniumABILanguageRuntime::Terminate(); AppleObjCRuntimeV2::Terminate(); |

