Author: aidandodds Date: Thu Jun 18 05:25:54 2015 New Revision: 240007 URL: http://llvm.org/viewvc/llvm-project?rev=240007&view=rev Log: Fix duplicate shared module list entries
Differential Revision: http://reviews.llvm.org/D10499 Modified: lldb/trunk/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp Modified: lldb/trunk/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp?rev=240007&r1=240006&r2=240007&view=diff ============================================================================== --- lldb/trunk/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp (original) +++ lldb/trunk/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp Thu Jun 18 05:25:54 2015 @@ -316,6 +316,9 @@ DYLDRendezvous::TakeSnapshot(SOEntryList 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)) _______________________________________________ lldb-commits mailing list lldb-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits