Added a "--no-lldbinit" option (-n for short (which magically matches
what gdb uses)) so we can tell our "lldb" driver program to not automatically
parse any .lldbinit files. 



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@116179 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/CommandInterpreter.cpp b/source/Interpreter/CommandInterpreter.cpp
index f0704f7..64bdfcd 100644
--- a/source/Interpreter/CommandInterpreter.cpp
+++ b/source/Interpreter/CommandInterpreter.cpp
@@ -59,7 +59,8 @@
 ) :
     Broadcaster ("CommandInterpreter"),
     m_debugger (debugger),
-    m_synchronous_execution (synchronous_execution)
+    m_synchronous_execution (synchronous_execution),
+    m_skip_lldbinit_files (false)
 {
     const char *dbg_name = debugger.GetInstanceName().AsCString();
     std::string lang_name = ScriptInterpreter::LanguageToString (script_language);
@@ -1060,6 +1061,10 @@
 void
 CommandInterpreter::SourceInitFile (bool in_cwd, CommandReturnObject &result)
 {
+    // Don't parse any .lldbinit files if we were asked not to
+    if (m_skip_lldbinit_files)
+        return;
+
     const char *init_file_path = in_cwd ? "./.lldbinit" : "~/.lldbinit";
     FileSpec init_file (init_file_path);
     // If the file exists, tell HandleCommand to 'source' it; this will do the actual broadcasting