From aa149cbd863d1722f8e5263cac26b9c9f4461f57 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Thu, 11 Aug 2011 02:48:45 +0000 Subject: Added the ability to remove orphaned module shared pointers from a ModuleList. This is helping us track down some extra references to ModuleSP objects that are causing things to get kept around for too long. Added a module pointer accessor to target and change a lot of code to use it where it would be more efficient. "taret delete" can now specify "--clean=1" which will cleanup the global module list for any orphaned module in the shared module cache which can save memory and also help track down module reference leaks like we have now. llvm-svn: 137294 --- lldb/source/Commands/CommandObjectBreakpoint.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'lldb/source/Commands/CommandObjectBreakpoint.cpp') diff --git a/lldb/source/Commands/CommandObjectBreakpoint.cpp b/lldb/source/Commands/CommandObjectBreakpoint.cpp index de83d9f8fe7..2e894edae11 100644 --- a/lldb/source/Commands/CommandObjectBreakpoint.cpp +++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp @@ -306,7 +306,6 @@ CommandObjectBreakpointSet::Execute else if (!m_options.m_func_regexp.empty()) break_type = eSetTypeFunctionRegexp; - ModuleSP module_sp = target->GetExecutableModule(); Breakpoint *bp = NULL; FileSpec module_spec; bool use_module = false; -- cgit v1.2.3