From ec89bf448f02f3d727c13a7e4dae1eff90e48544 Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Sun, 7 Dec 2025 13:30:19 +0100 Subject: [PATCH] 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. --- coregrind/m_debuginfo/readmacho.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.47.3