summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBDebugger.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-10-11 01:05:37 +0000
committerGreg Clayton <gclayton@apple.com>2010-10-11 01:05:37 +0000
commit6eee5aa0671b8aea82930424ac11fceaba809bd3 (patch)
treeb4149d8831211c0bd1672e74bd6d83b6a8169a81 /lldb/source/API/SBDebugger.cpp
parent46747022d292d2d1568eb0b8044030f4aee6a5b6 (diff)
downloadbcm5719-llvm-6eee5aa0671b8aea82930424ac11fceaba809bd3.tar.gz
bcm5719-llvm-6eee5aa0671b8aea82930424ac11fceaba809bd3.zip
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. llvm-svn: 116179
Diffstat (limited to 'lldb/source/API/SBDebugger.cpp')
-rw-r--r--lldb/source/API/SBDebugger.cpp18
1 files changed, 13 insertions, 5 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp
index d29a9f76303..6a68e3bf34e 100644
--- a/lldb/source/API/SBDebugger.cpp
+++ b/lldb/source/API/SBDebugger.cpp
@@ -10,11 +10,6 @@
#include "lldb/API/SBDebugger.h"
#include "lldb/lldb-include.h"
-#include "lldb/Interpreter/Args.h"
-#include "lldb/Core/Debugger.h"
-#include "lldb/Core/State.h"
-#include "lldb/Target/Process.h"
-#include "lldb/Target/TargetList.h"
#include "lldb/API/SBListener.h"
#include "lldb/API/SBBroadcaster.h"
@@ -29,6 +24,12 @@
#include "lldb/API/SBStringList.h"
#include "lldb/API/SBTarget.h"
#include "lldb/API/SBThread.h"
+#include "lldb/Core/Debugger.h"
+#include "lldb/Core/State.h"
+#include "lldb/Interpreter/Args.h"
+#include "lldb/Interpreter/CommandInterpreter.h"
+#include "lldb/Target/Process.h"
+#include "lldb/Target/TargetList.h"
using namespace lldb;
using namespace lldb_private;
@@ -82,6 +83,13 @@ SBDebugger::SetAsync (bool b)
m_opaque_sp->SetAsyncExecution(b);
}
+void
+SBDebugger::SkipLLDBInitFiles (bool b)
+{
+ if (m_opaque_sp)
+ m_opaque_sp->GetCommandInterpreter().SkipLLDBInitFiles (b);
+}
+
// Shouldn't really be settable after initialization as this could cause lots of problems; don't want users
// trying to switch modes in the middle of a debugging session.
void
OpenPOWER on IntegriCloud