[PATCH 2/4] dbghelp: Don't parse the DWARF info from Mach-O files if we were requested to only provide public symbols.
Ken Thomases
ken at codeweavers.com
Sun Jun 28 20:45:10 CDT 2015
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;
--
2.4.3
More information about the wine-patches
mailing list