From 0c4129f2f71703752a443d4310c36b6d44df7651 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 25 Apr 2014 00:35:14 +0000 Subject: 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 --- lldb/source/Interpreter/CommandInterpreter.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp') 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) { -- cgit v1.2.3