Skip to content

Commit

Permalink
Fix duplicate shared module list entries
Browse files Browse the repository at this point in the history
Differential Revision: http://reviews.llvm.org/D10499

llvm-svn: 240007
  • Loading branch information
bit-hack committed Jun 18, 2015
1 parent 3b5b5c4 commit 9869724
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -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))
Expand Down

0 comments on commit 9869724

Please sign in to comment.