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