]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Darwin: Fix bad merge of coregrind/m_debuginfo/debuginfo.c
authorPaul Floyd <pjfloyd@wanadoo.fr>
Thu, 28 Dec 2023 09:41:54 +0000 (10:41 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Thu, 28 Dec 2023 09:41:54 +0000 (10:41 +0100)
coregrind/m_debuginfo/debuginfo.c

index e4450afc475ac3d8cd46e5f5488f9f3ff33cac77..6fec43e869a9efbb32e73304dcc7338b9c62d0ea 100644 (file)
@@ -1387,9 +1387,10 @@ ULong VG_(di_notify_mmap)( Addr a, Bool allow_SkFileV, Int use_fd )
       return 0;
    vg_assert(sr_Res(preadres) > 0 && sr_Res(preadres) <= sizeof(buf1k) );
 
-   if (!ML_(is_macho_object_file)( buf1k, (SizeT)sr_Res(preadres) ))
+   rw_load_count = 0;
+
+   if (!ML_(check_macho_and_get_rw_loads)( buf4k, (SizeT)sr_Res(preadres), &rw_load_count ))
       return 0;
-   rw_load_count = 1;
 #endif
 
    /* We're only interested in mappings of object files. */