[Lldb-commits] [lldb] r179584 - Update the dyld_all_image_infos size definition in
Jason Molenda
jmolenda at apple.com
Mon Apr 15 23:28:00 PDT 2013
Author: jmolenda
Date: Tue Apr 16 01:28:00 2013
New Revision: 179584
URL: http://llvm.org/viewvc/llvm-project?rev=179584&view=rev
Log:
Update the dyld_all_image_infos size definition in
DynamicLoaderMacOSXDYLD::ReadAllImageInfosStructure for
version 13 of that structure.
Modified:
lldb/trunk/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp
Modified: lldb/trunk/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp?rev=179584&r1=179583&r2=179584&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp (original)
+++ lldb/trunk/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp Tue Apr 16 01:28:00 2013
@@ -709,7 +709,10 @@ DynamicLoaderMacOSXDYLD::ReadAllImageInf
addr_size + // errorClientOfDylibPath
addr_size + // errorTargetDylibPath
addr_size; // errorSymbol
- assert (sizeof (buf) >= count_v11);
+ const size_t count_v13 = count_v11 +
+ addr_size + // sharedCacheSlide
+ sizeof (uuid_t); // sharedCacheUUID
+ assert (sizeof (buf) >= count_v13);
Error error;
if (m_process->ReadMemory (m_dyld_all_image_infos_addr, buf, 4, error) == 4)
More information about the lldb-commits
mailing list