[Lldb-commits] [PATCH] Fix duplicate shared module list entries
Aidan at codeplay.com
Wed Jun 17 03:20:59 PDT 2015
The POSIX DYLD has a fault causing it to duplicate all of the shared module entries twice. This happens because DYLDRendezvous::TakeSnapshot is called twice upon attach, and it appends to the list each time, rather then replacing its contents. This is fixed by clearing the list before taking a new snapshot.
@@ -326,6 +326,9 @@
if (m_current.map_addr == 0)
+ // clear previous entries since we are about to obtain an up to date list
for (addr_t cursor = m_current.map_addr; cursor != 0; cursor = entry.next)
if (!ReadSOEntryFromMemory(cursor, entry))
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 584 bytes
Desc: not available
More information about the lldb-commits