Fix duplicate shared module list entries

Differential Revision: http://reviews.llvm.org/D10499

llvm-svn: 240007
This commit is contained in:
Aidan Dodds 2015-06-18 10:25:54 +00:00
parent 3b5b5c492e
commit 9869724dcf
1 changed files with 3 additions and 0 deletions

View File

@ -316,6 +316,9 @@ DYLDRendezvous::TakeSnapshot(SOEntryList &entry_list)
if (m_current.map_addr == 0)
return false;
// Clear previous entries since we are about to obtain an up to date list.
entry_list.clear();
for (addr_t cursor = m_current.map_addr; cursor != 0; cursor = entry.next)
{
if (!ReadSOEntryFromMemory(cursor, entry))