From 75a6b5764a264f2f2897adef40ecb4827b0bfa97 Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Wed, 20 Sep 2023 08:47:14 +0200 Subject: [PATCH] Darwin: fix build with lazy debuginfo reading Needs the macho reader, not ELF. --- coregrind/m_debuginfo/debuginfo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/coregrind/m_debuginfo/debuginfo.c b/coregrind/m_debuginfo/debuginfo.c index 51efe58c7a..ba66fb9c69 100644 --- a/coregrind/m_debuginfo/debuginfo.c +++ b/coregrind/m_debuginfo/debuginfo.c @@ -1450,7 +1450,11 @@ void VG_(di_load_di)( DebugInfo *di ) { if (di->deferred) { di->deferred = False; +#if defined(VGO_darwin) + ML_(read_macho_debug_info) (di); +#else ML_(read_elf_debug) (di); +#endif ML_(canonicaliseTables)( di ); /* Check invariants listed in -- 2.47.2