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.
This commit is contained in:
Ken Thomases 2015-06-28 20:45:10 -05:00 committed by Alexandre Julliard
parent 83c1255f66
commit 70565f1b8b
1 changed files with 6 additions and 3 deletions

View File

@ -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;