dbghelp: In dwarf debug info, use the same name of anonymous UDT as pdb.

It's hard coded by msvc in PDB information, so adapt dwarf to advertize
the same.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
This commit is contained in:
Eric Pouech 2023-01-02 18:02:55 +01:00 committed by Alexandre Julliard
parent c385b6475e
commit 85fb74a672

View file

@ -1764,7 +1764,7 @@ static struct symt* dwarf2_parse_udt_type(dwarf2_debug_info_t* di,
/* quirk... FIXME provide real support for anonymous UDTs */
if (!dwarf2_find_attribute(di, DW_AT_name, &name))
name.u.string = "zz_anon_zz";
name.u.string = "<unnamed-tag>";
if (!dwarf2_find_attribute(di, DW_AT_byte_size, &size)) size.u.uvalue = 0;
di->symt = &symt_new_udt(di->unit_ctx->module_ctx->module, dwarf2_get_cpp_name(di, name.u.string),