summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-04-25 00:35:14 +0000
committerGreg Clayton <gclayton@apple.com>2014-04-25 00:35:14 +0000
commit0c4129f2f71703752a443d4310c36b6d44df7651 (patch)
tree8780eeec2c7b863e866091a1d355694fdd3f20ff /lldb/source/Interpreter/CommandInterpreter.cpp
parenta0560152cb934dfcf33138cc707700845df95e67 (diff)
downloadbcm5719-llvm-0c4129f2f71703752a443d4310c36b6d44df7651.tar.gz
bcm5719-llvm-0c4129f2f71703752a443d4310c36b6d44df7651.zip
Make sure that the CommandInterpreter::m_command_io_handler_sp gets reset when we quit.
Currently if you run _any_ python, python has the "lldb.debugger" global variable and it has a strong reference to a lldb_private::Debugger since it is a lldb::SBDebugger object with a shared pointer. This makes sure that your LLDB command interpreter history is saved each time you quit command line LLDB. llvm-svn: 207164
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index 1ee5736160b..980a45a2a00 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -351,6 +351,12 @@ CommandInterpreter::Initialize ()
}
}
+void
+CommandInterpreter::Clear()
+{
+ m_command_io_handler_sp.reset();
+}
+
const char *
CommandInterpreter::ProcessEmbeddedScriptCommands (const char *arg)
{
OpenPOWER on IntegriCloud