Module: wine Branch: master Commit: b990eaa8a686c5b4b1ff4b6b7610742a3db3ec34 URL: https://gitlab.winehq.org/wine/wine/-/commit/b990eaa8a686c5b4b1ff4b6b7610742...
Author: Eric Pouech eric.pouech@gmail.com Date: Fri Sep 30 18:15:04 2022 +0200
dbghelp: Expose local static variables' address.
Signed-off-by: Eric Pouech eric.pouech@gmail.com
---
dlls/dbghelp/dbghelp_private.h | 2 +- dlls/dbghelp/type.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/dbghelp/dbghelp_private.h b/dlls/dbghelp/dbghelp_private.h index 1e0a3423ea3..fd887718d8c 100644 --- a/dlls/dbghelp/dbghelp_private.h +++ b/dlls/dbghelp/dbghelp_private.h @@ -192,7 +192,7 @@ struct symt_data struct symt* type; union /* depends on kind */ { - /* DataIs{Global, FileStatic}: + /* DataIs{Global, FileStatic, StaticLocal}: * with loc.kind * loc_absolute loc.offset is address * loc_tlsrel loc.offset is TLS index address diff --git a/dlls/dbghelp/type.c b/dlls/dbghelp/type.c index 9d39d490965..cb1c7f7bc0d 100644 --- a/dlls/dbghelp/type.c +++ b/dlls/dbghelp/type.c @@ -143,6 +143,7 @@ BOOL symt_get_address(const struct symt* type, ULONG64* addr) { case DataIsGlobal: case DataIsFileStatic: + case DataIsStaticLocal: *addr = ((const struct symt_data*)type)->u.var.offset; break; default: return FALSE;