Ken Thomases : dbghelp: Don' t parse the DWARF info from Mach-O files if we were requested to only provide public symbols.
Module: wine Branch: master Commit: 70565f1b8bd789412aad46743a6c3f9cab95f03f URL: http://source.winehq.org/git/wine.git/?a=commit;h=70565f1b8bd789412aad46743a... Author: Ken Thomases <ken(a)codeweavers.com> Date: Sun Jun 28 20:45:10 2015 -0500 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 f39b4b6..6be0018 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;
participants (1)
-
Alexandre Julliard