Add modules downloaded by ModuleCache to the global ModuleList
authorTamas Berghammer <tberghammer@google.com>
Thu, 10 Dec 2015 17:08:23 +0000 (17:08 +0000)
committerTamas Berghammer <tberghammer@google.com>
Thu, 10 Dec 2015 17:08:23 +0000 (17:08 +0000)
commit257e13ae9a2bc62369b2ed5fc3370ebf8cd2cf47
tree7f5b8cdfd214f313203ea3b9ace840f5b13b51a6
parent9f2ff9c669e9d4c3350ec34a2b981e6bc952b47c
Add modules downloaded by ModuleCache to the global ModuleList

Adding the modules to the global module list eleminate issues in the
case when a module is unloaded from the target but some object (e.g.
breakpoint) still referencing them with weak pointers. It also speeds
up the case when we load, unload, load the same shared library because
the global module cache will keep the parsed debug info around between
the 2 load (this scenario happens for some code on android).

Differential revision: http://reviews.llvm.org/D15415

llvm-svn: 255260
lldb/source/Utility/ModuleCache.cpp