[PATCH 2/6] [DbgHelp]: correctly initialize module word_size field when only the eh_frmae is present (and not compilation unit)

Eric Pouech eric.pouech at orange.fr
Mon Feb 13 14:41:39 CST 2012




A+
---

 dlls/dbghelp/dwarf.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c
index 2a16650..6e57346 100644
--- a/dlls/dbghelp/dwarf.c
+++ b/dlls/dbghelp/dwarf.c
@@ -3366,6 +3366,9 @@ BOOL dwarf2_parse(struct module* module, unsigned long load_offset,
     dwarf2_modfmt->module->module.SourceIndexed = TRUE;
     dwarf2_modfmt->module->module.Publics = TRUE;
 
+    /* set the word_size for eh_frame parsing */
+    dwarf2_modfmt->u.dwarf2_info->word_size = fmap->addr_size / 8;
+
 leave:
     image_unmap_section(&debug_sect);
     image_unmap_section(&debug_abbrev_sect);




More information about the wine-patches mailing list