From 70565f1b8bd789412aad46743a6c3f9cab95f03f Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Sun, 28 Jun 2015 20:45:10 -0500 Subject: [PATCH] dbghelp: Don't parse the DWARF info from Mach-O files if we were requested to only provide public symbols. This now works more like how the ELF and PE support works. --- dlls/dbghelp/macho_module.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dlls/dbghelp/macho_module.c b/dlls/dbghelp/macho_module.c index f39b4b6b97f..6be00180ac3 100644 --- a/dlls/dbghelp/macho_module.c +++ b/dlls/dbghelp/macho_module.c @@ -1002,9 +1002,12 @@ BOOL macho_load_debug_info(struct module* module) macho_finish_stabs(module, &mdi.ht_symtab); - if (dwarf2_parse(module, module->reloc_delta, NULL /* FIXME: some thunks to deal with ? */, - &module->format_info[DFI_MACHO]->u.macho_info->file_map)) - ret = TRUE; + if (!(dbghelp_options & SYMOPT_PUBLICS_ONLY)) + { + if (dwarf2_parse(module, module->reloc_delta, NULL /* FIXME: some thunks to deal with ? */, + &module->format_info[DFI_MACHO]->u.macho_info->file_map)) + ret = TRUE; + } pool_destroy(&mdi.pool); return ret;