Don't search for module resources at all if the setting is set to "false".
llvm-svn: 215936
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp
index e06a458..225bb6d 100644
--- a/lldb/source/Core/Module.cpp
+++ b/lldb/source/Core/Module.cpp
@@ -1518,6 +1518,9 @@
LoadScriptFromSymFile should_load = target->TargetProperties::GetLoadScriptFromSymbolFile();
+ if (should_load == eLoadScriptFromSymFileFalse)
+ return false;
+
Debugger &debugger = target->GetDebugger();
const ScriptLanguage script_language = debugger.GetScriptLanguage();
if (script_language != eScriptLanguageNone)
@@ -1547,8 +1550,6 @@
FileSpec scripting_fspec (file_specs.GetFileSpecAtIndex(i));
if (scripting_fspec && scripting_fspec.Exists())
{
- if (should_load == eLoadScriptFromSymFileFalse)
- return false;
if (should_load == eLoadScriptFromSymFileWarn)
{
if (feedback_stream)