Skip to content

Commit d3c9d64

Browse files
EPouechjulliard
authored andcommitted
winedump: Add support for dumping information about type's hash stream.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
1 parent 1d03a4f commit d3c9d64

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tools/winedump/pdb.c

+16
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,21 @@ static void pdb_dump_symbols(struct pdb_reader* reader, PDB_STREAM_INDEXES* sidx
562562
free(filesimage);
563563
}
564564

565+
static void pdb_dump_types_hash(struct pdb_reader* reader, unsigned file, const char* strmname)
566+
{
567+
void* hash = NULL;
568+
DWORD size;
569+
570+
hash = reader->read_file(reader, file);
571+
if (!hash) return;
572+
573+
size = pdb_get_file_size(reader, file);
574+
575+
printf("Types (%s) hash:\n", strmname);
576+
dump_data(hash, size, " ");
577+
free(hash);
578+
}
579+
565580
/* there are two 'type' related streams, but with different indexes... */
566581
static void pdb_dump_types(struct pdb_reader* reader, unsigned strmidx, const char* strmname)
567582
{
@@ -616,6 +631,7 @@ static void pdb_dump_types(struct pdb_reader* reader, unsigned strmidx, const ch
616631
types->unknown_offset,
617632
types->unknown_len);
618633
codeview_dump_types_from_block((const char*)types + types->type_offset, types->type_size);
634+
pdb_dump_types_hash(reader, types->file, strmname);
619635
free(types);
620636
}
621637

0 commit comments

Comments
 (0)