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
This commit is contained in:
Greg Clayton
2011-08-12 21:40:01 +00:00
parent 2fcc1cfdce
commit 7e9b1fd045
31 changed files with 620 additions and 124 deletions

View File

@@ -214,6 +214,12 @@ Module::CalculateSymbolContext(SymbolContext* sc)
sc->module_sp = GetSP();
}
Module *
Module::CalculateSymbolContextModule ()
{
return this;
}
void
Module::DumpSymbolContext(Stream *s)
{