mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 12:25:46 +08:00
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:
@@ -214,6 +214,12 @@ Module::CalculateSymbolContext(SymbolContext* sc)
|
||||
sc->module_sp = GetSP();
|
||||
}
|
||||
|
||||
Module *
|
||||
Module::CalculateSymbolContextModule ()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
Module::DumpSymbolContext(Stream *s)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user