]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Darwin: fix debug only build
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 7 Dec 2025 12:30:19 +0000 (13:30 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 7 Dec 2025 12:30:19 +0000 (13:30 +0100)
Was filing to link. Optimised builds were smart enough to optimise away
a call to a function that I haven't merged into the repo yet.

coregrind/m_debuginfo/readmacho.c

index 66fd57e06dba1130cf9e069d0f6ec838397b2e5c..2c59d09deb34ff83079b170252bf8fcb83ddecb3 100644 (file)
@@ -215,7 +215,9 @@ static DiSlice map_image_aboard ( DebugInfo* di, /* only for err msgs */
      // unfortunately, all the data needed for parsing from the DSC is spread across many places in memory
      // and there is no way to know for sure the size of the DSC perfectly, so this is the best method at the moment
      // and it's _very_ unsafe
+#if (DARWIN_VERS >= DARWIN_10_15)
      mimg = ML_(img_from_memory)(rx_map->avma, MACH_DSC_END - rx_map->avma, filename);
+#endif
    } else {
      mimg = ML_(img_from_local_file)(filename);
    }