Update the dyld_all_image_infos size definition in
authorJason Molenda <jmolenda@apple.com>
Tue, 16 Apr 2013 06:28:00 +0000 (06:28 +0000)
committerJason Molenda <jmolenda@apple.com>
Tue, 16 Apr 2013 06:28:00 +0000 (06:28 +0000)
DynamicLoaderMacOSXDYLD::ReadAllImageInfosStructure for
version 13 of that structure.

llvm-svn: 179584

lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp

index 61b6de2..ea8fbd3 100644 (file)
@@ -709,7 +709,10 @@ DynamicLoaderMacOSXDYLD::ReadAllImageInfosStructure ()
                                  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)