summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Module.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-08-12 21:40:01 +0000
committerGreg Clayton <gclayton@apple.com>2011-08-12 21:40:01 +0000
commit7e9b1fd045751e0efcce74438fe490ce21f19df1 (patch)
tree7f0a623d2a76d9058b6e5e7e7d3f2ad1d51d69b7 /lldb/source/Core/Module.cpp
parent2fcc1cfdcea070a027749fa345ecc32992acb324 (diff)
downloadbcm5719-llvm-7e9b1fd045751e0efcce74438fe490ce21f19df1.tar.gz
bcm5719-llvm-7e9b1fd045751e0efcce74438fe490ce21f19df1.zip
We were leaking a stack frame in StackFrameList in Thread.cpp which could
cause extra shared pointer references to one or more modules to be leaked. This would cause many object files to stay around the life of LLDB, so after a recompile and rexecution, we would keep adding more and more memory. After fixing the leak, we found many cases where leaked stack frames were still being used and causing crashes in the test suite. These are now all resolved. llvm-svn: 137516
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r--lldb/source/Core/Module.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp
index 65f2fb7e628..4c997969ea4 100644
--- a/lldb/source/Core/Module.cpp
+++ b/lldb/source/Core/Module.cpp
@@ -214,6 +214,12 @@ Module::CalculateSymbolContext(SymbolContext* sc)
sc->module_sp = GetSP();
}
+Module *
+Module::CalculateSymbolContextModule ()
+{
+ return this;
+}
+
void
Module::DumpSymbolContext(Stream *s)
{
OpenPOWER on IntegriCloud