Eric Pouech : dbghelp/dwarf: Correctly compute address of label.

Alexandre Julliard julliard at winehq.org
Wed Oct 6 15:51:37 CDT 2021


Module: wine
Branch: master
Commit: 2da1698312bbc7dc1c2df4d4c15ca969499b9391
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=2da1698312bbc7dc1c2df4d4c15ca969499b9391

Author: Eric Pouech <eric.pouech at gmail.com>
Date:   Wed Oct  6 10:02:12 2021 +0200

dbghelp/dwarf: Correctly compute address of label.

Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dbghelp/dwarf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c
index 430544196c5..c15b59b57c3 100644
--- a/dlls/dbghelp/dwarf.c
+++ b/dlls/dbghelp/dwarf.c
@@ -1988,7 +1988,7 @@ static void dwarf2_parse_subprogram_label(dwarf2_subprogram_t* subpgm,
         name.u.string = NULL;
 
     loc.kind = loc_absolute;
-    loc.offset = subpgm->ctx->module_ctx->load_offset + low_pc.u.uvalue;
+    loc.offset = subpgm->ctx->module_ctx->load_offset + low_pc.u.uvalue - subpgm->func->address;
     symt_add_function_point(subpgm->ctx->module_ctx->module, subpgm->func, SymTagLabel,
                             &loc, name.u.string);
 }




More information about the wine-cvs mailing list