diff options
author | Greg Clayton <gclayton@apple.com> | 2012-10-19 20:53:18 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-10-19 20:53:18 +0000 |
commit | 66763eed3c754b34ed69a0d95c9780eba2958ea0 (patch) | |
tree | f4da3ddaf359e33e0fbd03d0f466a768a5750b3f /lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp | |
parent | 14c43496c47f6d5b066c564fd321f3d4615c10ae (diff) | |
download | bcm5719-llvm-66763eed3c754b34ed69a0d95c9780eba2958ea0.tar.gz bcm5719-llvm-66763eed3c754b34ed69a0d95c9780eba2958ea0.zip |
Change the name of the variable used to detect if we are loading kexts to "load-kexts" instead of "disable-kext-loading" since the value is a boolean. This was requested by the person who requested the feature. It now defaults to true:
(lldb) settings show plugin.dynamic-loader.darwin-kernel.load-kexts
plugin.dynamic-loader.darwin-kernel.load-kexts (boolean) = true
llvm-svn: 166315
Diffstat (limited to 'lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp')
-rw-r--r-- | lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp index 097e09211e2..739a46a7be2 100644 --- a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp +++ b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp @@ -42,12 +42,12 @@ using namespace lldb_private; static PropertyDefinition g_properties[] = { - { "disable-kext-loading" , OptionValue::eTypeBoolean, false, false, NULL, NULL, "Disable kext image loading in a Darwin kernel debug session." }, - { NULL , OptionValue::eTypeInvalid, false, 0 , NULL, NULL, NULL } + { "load-kexts" , OptionValue::eTypeBoolean, true, true, NULL, NULL, "Automatically loads kext images when attaching to a kernel." }, + { NULL , OptionValue::eTypeInvalid, false, 0 , NULL, NULL, NULL } }; enum { - ePropertyDisableKextLoading + ePropertyLoadKexts }; class DynamicLoaderDarwinKernelProperties : public Properties @@ -74,9 +74,9 @@ public: } bool - GetDisableKextLoading() const + GetLoadKexts() const { - const uint32_t idx = ePropertyDisableKextLoading; + const uint32_t idx = ePropertyLoadKexts; return m_collection_sp->GetPropertyAtIndexAsBoolean (NULL, idx, g_properties[idx].default_uint_value != 0); } @@ -244,7 +244,7 @@ DynamicLoaderDarwinKernel::OSKextLoadedKextSummary::LoadImageUsingMemoryModule ( ModuleSP memory_module_sp; // If this is a kext and the user asked us to ignore kexts, don't try to load it. - if (kernel_image == false && GetGlobalProperties()->GetDisableKextLoading() == true) + if (kernel_image == false && GetGlobalProperties()->GetLoadKexts() == false) { return false; } |