From: Eric Pouech <epouech@codeweavers.com> Signed-off-by: Eric Pouech <epouech@codeweavers.com> --- tools/winedump/msc.c | 17 +++++++++++++---- tools/winedump/pdb.c | 5 ++++- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/tools/winedump/msc.c b/tools/winedump/msc.c index ff8d7b4ff1a..febee0d4a8a 100644 --- a/tools/winedump/msc.c +++ b/tools/winedump/msc.c @@ -1009,13 +1009,19 @@ static void codeview_dump_one_type(unsigned curr_type, const union codeview_type break; case LF_MODIFIER_V1: - printf("\t%x => Modifier V1 type:%x modif:%x\n", - curr_type, type->modifier_v1.type, type->modifier_v1.attribute); + printf("\t%x => Modifier V1 type:%x modif:%x%s%s%s\n", + curr_type, type->modifier_v1.type, type->modifier_v1.attribute, + (type->modifier_v1.attribute & 1) ? "-const" : "", + (type->modifier_v1.attribute & 2) ? "-volatile" : "", + (type->modifier_v1.attribute & 4) ? "-unaligned" : ""); break; case LF_MODIFIER_V2: - printf("\t%x => Modifier V2 type:%x modif:%x\n", - curr_type, type->modifier_v2.type, type->modifier_v2.attribute); + printf("\t%x => Modifier V2 type:%x modif:%x%s%s%s\n", + curr_type, type->modifier_v2.type, type->modifier_v2.attribute, + (type->modifier_v2.attribute & 1) ? "-const" : "", + (type->modifier_v2.attribute & 2) ? "-volatile" : "", + (type->modifier_v2.attribute & 4) ? "-unaligned" : ""); break; case LF_METHODLIST_V1: @@ -1356,6 +1362,9 @@ BOOL codeview_dump_symbols(const void* root, unsigned long start, unsigned long int length; struct symbol_dumper sd; + if (start == sizeof(unsigned)) + printf(" [header: %x]\n", *((unsigned*)root)); + init_symbol_dumper(&sd); /* * Loop over the different types of records and whenever we diff --git a/tools/winedump/pdb.c b/tools/winedump/pdb.c index 275c5397f63..9bfbb05449a 100644 --- a/tools/winedump/pdb.c +++ b/tools/winedump/pdb.c @@ -463,7 +463,7 @@ static const void* pdb_dump_dbi_module(struct pdb_reader* reader, const PDB_SYMB "\t\t\tunknown: %08x\n", sym_file->range.timestamp, sym_file->range.unknown); - printf("\t\tflag: %04x\n" + printf("\t\tflag: %04x (%x%s%s)\n" "\t\tstream: %04x\n" "\t\tsymb size: %08x\n" "\t\tline size: %08x\n" @@ -471,6 +471,9 @@ static const void* pdb_dump_dbi_module(struct pdb_reader* reader, const PDB_SYMB "\t\tnSrcFiles: %08x\n" "\t\tattribute: %08x\n", sym_file->flag, + HIBYTE(sym_file->flag), + sym_file->flag & 0x01 ? ";Dirty" : "", + sym_file->flag & 0x02 ? ";EC" : "", sym_file->stream, sym_file->symbol_size, sym_file->lineno_size, -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10020