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

winedump: Added for dumping sstAlignSym and sstGlobalTypes COFF sections.

parent c6e8c2aa
...@@ -173,7 +173,25 @@ static int dump_cv_sst_libraries(const OMFDirEntry* omfde) ...@@ -173,7 +173,25 @@ static int dump_cv_sst_libraries(const OMFDirEntry* omfde)
static int dump_cv_sst_global_types(const OMFDirEntry* omfde) static int dump_cv_sst_global_types(const OMFDirEntry* omfde)
{ {
/*** NOT YET IMPLEMENTED ***/ long fileoffset;
const OMFGlobalTypes*types;
const BYTE* data;
unsigned sz;
fileoffset = Offset(cv_base) + omfde->lfo;
printf (" GlobalTypes section starts at file offset 0x%lx\n", fileoffset);
printf ("\n ----- Begin Global Types Table -----\n");
types = PRD(fileoffset, sizeof(OMFGlobalTypes));
if (!types) {printf("Can't get OMF-GlobalTypes, aborting\n");return FALSE;}
sz = omfde->cb - sizeof(OMFGlobalTypes) - sizeof(DWORD) * types->cTypes;
data = PRD(fileoffset + sizeof(OMFGlobalTypes) + sizeof(DWORD) * types->cTypes, sz);
if (!data) {printf("Can't OMF-SymHash details, aborting\n"); return FALSE;}
codeview_dump_types(data, sz);
return TRUE; return TRUE;
} }
...@@ -306,7 +324,11 @@ static int dump_cv_sst_src_module(const OMFDirEntry* omfde) ...@@ -306,7 +324,11 @@ static int dump_cv_sst_src_module(const OMFDirEntry* omfde)
static int dump_cv_sst_align_sym(const OMFDirEntry* omfde) static int dump_cv_sst_align_sym(const OMFDirEntry* omfde)
{ {
/*** NOT YET IMPLEMENTED ***/ const char* rawdata = PRD(Offset(cv_base) + omfde->lfo, omfde->cb);
if (!rawdata) {printf("Can't get srcAlignSym subsection details, aborting\n");return FALSE;}
if (omfde->cb < sizeof(DWORD)) return TRUE;
codeview_dump_symbols(rawdata + sizeof(DWORD), omfde->cb - sizeof(DWORD));
return TRUE; return TRUE;
} }
......
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