From: Paul Floyd Date: Sun, 7 Dec 2025 12:30:19 +0000 (+0100) Subject: Darwin: fix debug only build X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec89bf448f02f3d727c13a7e4dae1eff90e48544;p=thirdparty%2Fvalgrind.git Darwin: fix debug only build 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. --- diff --git a/coregrind/m_debuginfo/readmacho.c b/coregrind/m_debuginfo/readmacho.c index 66fd57e06..2c59d09de 100644 --- a/coregrind/m_debuginfo/readmacho.c +++ b/coregrind/m_debuginfo/readmacho.c @@ -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); }