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/Core/Debugger.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lldb/source/Core/Debugger.cpp') diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index 434029d89a8..4a159145c6e 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -696,6 +696,8 @@ Debugger::Clear() m_terminal_state.Clear(); if (m_input_file_sp) m_input_file_sp->GetFile().Close (); + + m_command_interpreter_ap->Clear(); } bool -- cgit v1.2.3