forked from OSchip/llvm-project
Fix duplicate shared module list entries
Differential Revision: http://reviews.llvm.org/D10499 llvm-svn: 240007
This commit is contained in:
parent
3b5b5c492e
commit
9869724dcf
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue