Platform SDK: Debugging and Error Handling

IMAGE_DEBUG_DIRECTORY

The IMAGE_DEBUG_DIRECTORY structure represents the debug directory format.

typedef struct _IMAGE_DEBUG_DIRECTORY {
    DWORD   Characteristics;
    DWORD   TimeDateStamp;
    WORD    MajorVersion;
    WORD    MinorVersion;
    DWORD   Type;
    DWORD   SizeOfData;
    DWORD   AddressOfRawData;
    DWORD   PointerToRawData;
} IMAGE_DEBUG_DIRECTORY, *PIMAGE_DEBUG_DIRECTORY;

Members

Characteristics
Reserved.
TimeDateStamp
Time and date the debugging information was created.
MajorVersion
Major version number of the debugging information format.
MinorVersion
Minor version number of the debugging information format.
Type
Format of the debugging information. This parameter can be one of the following values.
Constant Description
IMAGE_DEBUG_TYPE_UNKNOWN Unknown value, ignored by all tools.
IMAGE_DEBUG_TYPE_COFF COFF debugging information (line numbers, symbol table, and string table). This type of debugging information is also pointed to by fields in the file headers.
IMAGE_DEBUG_TYPE_CODEVIEW CodeView debugging information. The format of the data block is described by the CodeView 4.0 specification.
IMAGE_DEBUG_TYPE_FPO Frame pointer omission (FPO) information. This information tells the debugger how to interpret nonstandard stack frames, which use the EBP register for a purpose other than as a frame pointer.
IMAGE_DEBUG_TYPE_MISC Miscellaneous information.
IMAGE_DEBUG_TYPE_EXCEPTION Exception information.
IMAGE_DEBUG_TYPE_FIXUP Fixup information.
IMAGE_DEBUG_TYPE_BORLAND Borland debugging information.

SizeOfData
The size of the debugging information, in bytes, not including the debug directory itself.
AddressOfRawData
Address of the debugging information when the image is loaded, relative to the image base.
PointerToRawData
File pointer to the debugging information.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 or later.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in Winnt.h; include Windows.h.

See Also

Image Help Library Overview, ImageHlp Structures