Added cvdump tool to dump CodeView symbol information.
[wine/gsoc-2012-control.git] / tools / cvdump / cvdump.h
blobb7cda4334faa8f3d7f159886b1b30d2448663f42
1 /*
2 * Includes for cvdump tool.
4 * Copyright 2000 John R. Sheets
5 */
7 /* #define VERBOSE */
9 #include "peexe.h"
10 #include "neexe.h"
11 #include "cvinclude.h"
13 typedef enum { CV_NONE, CV_DOS, CV_NT, CV_DBG } CVHeaderType;
16 * Function Prototypes
19 /* From cvload.c */
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);
33 /* From cvprint.c */
34 int PrintSrcModuleInfo (BYTE* rawdata, short *filecount, short *segcount);
35 int PrintSrcModuleFileInfo (BYTE* rawdata);
36 int PrintSrcModuleLineInfo (BYTE* rawdata, int tablecount);