Commit d3c9d645 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winedump: Add support for dumping information about type's hash stream.

parent 1d03a4fe
...@@ -562,6 +562,21 @@ static void pdb_dump_symbols(struct pdb_reader* reader, PDB_STREAM_INDEXES* sidx ...@@ -562,6 +562,21 @@ static void pdb_dump_symbols(struct pdb_reader* reader, PDB_STREAM_INDEXES* sidx
free(filesimage); free(filesimage);
} }
static void pdb_dump_types_hash(struct pdb_reader* reader, unsigned file, const char* strmname)
{
void* hash = NULL;
DWORD size;
hash = reader->read_file(reader, file);
if (!hash) return;
size = pdb_get_file_size(reader, file);
printf("Types (%s) hash:\n", strmname);
dump_data(hash, size, " ");
free(hash);
}
/* there are two 'type' related streams, but with different indexes... */ /* there are two 'type' related streams, but with different indexes... */
static void pdb_dump_types(struct pdb_reader* reader, unsigned strmidx, const char* strmname) static void pdb_dump_types(struct pdb_reader* reader, unsigned strmidx, const char* strmname)
{ {
...@@ -616,6 +631,7 @@ static void pdb_dump_types(struct pdb_reader* reader, unsigned strmidx, const ch ...@@ -616,6 +631,7 @@ static void pdb_dump_types(struct pdb_reader* reader, unsigned strmidx, const ch
types->unknown_offset, types->unknown_offset,
types->unknown_len); types->unknown_len);
codeview_dump_types_from_block((const char*)types + types->type_offset, types->type_size); codeview_dump_types_from_block((const char*)types + types->type_offset, types->type_size);
pdb_dump_types_hash(reader, types->file, strmname);
free(types); free(types);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment