Eric Pouech : dbghelp: Correctly initialize module word_size field when only the eh_frame is present (and not compilation unit).

Alexandre Julliard julliard at winehq.org
Tue Feb 14 13:23:32 CST 2012


Module: wine
Branch: master
Commit: 611d5e470d79577f6c2c6f255a12b289b03b7d05
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=611d5e470d79577f6c2c6f255a12b289b03b7d05

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Mon Feb 13 21:41:39 2012 +0100

dbghelp: Correctly initialize module word_size field when only the eh_frame is present (and not compilation unit).

---

 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-cvs mailing list