Eric Pouech : dbghelp: Quirk for supporting anonymous UDT (class, struct, enum...).
Alexandre Julliard
julliard at winehq.org
Wed Mar 9 11:12:50 CST 2011
Module: wine
Branch: master
Commit: d52e42e985784693f3b68c00a2869bf1dbe24fe3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d52e42e985784693f3b68c00a2869bf1dbe24fe3
Author: Eric Pouech <eric.pouech at orange.fr>
Date: Tue Mar 8 21:31:32 2011 +0100
dbghelp: Quirk for supporting anonymous UDT (class, struct, enum...).
---
dlls/dbghelp/dwarf.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c
index ac20442..8714c90 100644
--- a/dlls/dbghelp/dwarf.c
+++ b/dlls/dbghelp/dwarf.c
@@ -1406,7 +1406,9 @@ static struct symt* dwarf2_parse_udt_type(dwarf2_parse_context_t* ctx,
TRACE("%s, for %s\n", dwarf2_debug_ctx(ctx), dwarf2_debug_di(di));
- if (!dwarf2_find_attribute(ctx, di, DW_AT_name, &name)) name.u.string = NULL;
+ /* quirk... FIXME provide real support for anonymous UDTs */
+ if (!dwarf2_find_attribute(ctx, di, DW_AT_name, &name))
+ name.u.string = "zz_anon_zz";
if (!dwarf2_find_attribute(ctx, di, DW_AT_byte_size, &size)) size.u.uvalue = 0;
di->symt = &symt_new_udt(ctx->module, dwarf2_get_cpp_name(ctx, di, name.u.string),
More information about the wine-cvs
mailing list