summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectBreakpoint.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-08-11 02:48:45 +0000
committerGreg Clayton <gclayton@apple.com>2011-08-11 02:48:45 +0000
commitaa149cbd863d1722f8e5263cac26b9c9f4461f57 (patch)
tree03b9bb36184a893d7fd5f3c44deb48f4046a28f9 /lldb/source/Commands/CommandObjectBreakpoint.cpp
parent8e4c74bb7c515099d97a330c24a48126c3222a6d (diff)
downloadbcm5719-llvm-aa149cbd863d1722f8e5263cac26b9c9f4461f57.tar.gz
bcm5719-llvm-aa149cbd863d1722f8e5263cac26b9c9f4461f57.zip
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
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpoint.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectBreakpoint.cpp1
1 files changed, 0 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud