2 * Includes for cvdump tool.
4 * Copyright 2000 John R. Sheets
10 #include "cvinclude.h"
12 typedef enum { CV_NONE, CV_DOS, CV_NT, CV_DBG } CVHeaderType;
19 CVHeaderType GetHeaderType (FILE *debugfile);
20 int ReadDOSFileHeader (FILE *debugfile, IMAGE_DOS_HEADER *doshdr);
21 int ReadPEFileHeader (FILE *debugfile, IMAGE_NT_HEADERS *nthdr);
22 int ReadDBGFileHeader (FILE *debugfile, IMAGE_SEPARATE_DEBUG_HEADER *dbghdr);
24 int ReadSectionHeaders (FILE *debugfile, int numsects, IMAGE_SECTION_HEADER **secthdrs);
25 int ReadDebugDir (FILE *debugfile, int numdirs, IMAGE_DEBUG_DIRECTORY **debugdirs);
26 int ReadCodeViewHeader (FILE *debugfile, OMFSignature *sig, OMFDirHeader *dirhdr);
27 int ReadCodeViewDirectory (FILE *debugfile, int entrynum, OMFDirEntry **entries);
28 int ReadModuleData (FILE *debugfile, int entrynum, OMFDirEntry *entries,
29 int *module_count, OMFModuleFull **modules);
30 int ReadChunk (FILE *debugfile, void *dest, int length, int fileoffset);
33 int PrintSrcModuleInfo (BYTE* rawdata, short *filecount, short *segcount);
34 int PrintSrcModuleFileInfo (BYTE* rawdata);
35 int PrintSrcModuleLineInfo (BYTE* rawdata, int tablecount);