Class DebugDirectoryParser
- java.lang.Object
-
- ghidra.app.util.bin.format.pe.debug.DebugDirectoryParser
-
public class DebugDirectoryParser extends java.lang.ObjectA helper class to parsing different types of debug information from a debug directory
-
-
Field Summary
Fields Modifier and Type Field Description static byteIMAGE_DEBUG_TYPE_BORLANDBorland debug type.static byteIMAGE_DEBUG_TYPE_CLSIDCLS ID debug type.static byteIMAGE_DEBUG_TYPE_CODEVIEWCodeView debug type.static byteIMAGE_DEBUG_TYPE_COFFCOFF debug type.static byteIMAGE_DEBUG_TYPE_EXCEPTIONException debug type.static byteIMAGE_DEBUG_TYPE_FIXUPFixup debug type.static byteIMAGE_DEBUG_TYPE_FPOFPO debug type.static byteIMAGE_DEBUG_TYPE_MISCMisc debug type.static byteIMAGE_DEBUG_TYPE_OMAP_FROM_SRCOMAP-From-Source debug type.static byteIMAGE_DEBUG_TYPE_OMAP_TO_SRCOMAP-To-Source debug type.static byteIMAGE_DEBUG_TYPE_RESERVED10Reserved debug type.static byteIMAGE_DEBUG_TYPE_UNKNOWNUnknown debug type.
-
Constructor Summary
Constructors Constructor Description DebugDirectoryParser()DO NOT USE THIS CONSTRUCTOR, USE create*(GenericFactory ...) FACTORY METHODS INSTEAD.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DebugDirectoryParsercreateDebugDirectoryParser(FactoryBundledWithBinaryReader reader, long ptr, int size, OffsetValidator validator)Constructs a new debug directory parser.DebugCodeViewgetDebugCodeView()Returns the CodeView debug information, or null if it does not exists.DebugCOFFSymbolsHeadergetDebugCOFFSymbolsHeader()Returns the COFF debug information, or null if it does not exists.DebugDirectory[]getDebugDirectories()DebugFixupgetDebugFixup()Returns the Fixup debug information, or null if it does not exists.DebugMiscgetDebugMisc()Returns the miscellaneous debug information, or null if it does not exists.
-
-
-
Field Detail
-
IMAGE_DEBUG_TYPE_UNKNOWN
public static final byte IMAGE_DEBUG_TYPE_UNKNOWN
Unknown debug type.- See Also:
- Constant Field Values
-
IMAGE_DEBUG_TYPE_COFF
public static final byte IMAGE_DEBUG_TYPE_COFF
COFF debug type.- See Also:
- Constant Field Values
-
IMAGE_DEBUG_TYPE_CODEVIEW
public static final byte IMAGE_DEBUG_TYPE_CODEVIEW
CodeView debug type.- See Also:
- Constant Field Values
-
IMAGE_DEBUG_TYPE_FPO
public static final byte IMAGE_DEBUG_TYPE_FPO
FPO debug type.- See Also:
- Constant Field Values
-
IMAGE_DEBUG_TYPE_MISC
public static final byte IMAGE_DEBUG_TYPE_MISC
Misc debug type.- See Also:
- Constant Field Values
-
IMAGE_DEBUG_TYPE_EXCEPTION
public static final byte IMAGE_DEBUG_TYPE_EXCEPTION
Exception debug type.- See Also:
- Constant Field Values
-
IMAGE_DEBUG_TYPE_FIXUP
public static final byte IMAGE_DEBUG_TYPE_FIXUP
Fixup debug type.- See Also:
- Constant Field Values
-
IMAGE_DEBUG_TYPE_OMAP_TO_SRC
public static final byte IMAGE_DEBUG_TYPE_OMAP_TO_SRC
OMAP-To-Source debug type.- See Also:
- Constant Field Values
-
IMAGE_DEBUG_TYPE_OMAP_FROM_SRC
public static final byte IMAGE_DEBUG_TYPE_OMAP_FROM_SRC
OMAP-From-Source debug type.- See Also:
- Constant Field Values
-
IMAGE_DEBUG_TYPE_BORLAND
public static final byte IMAGE_DEBUG_TYPE_BORLAND
Borland debug type.- See Also:
- Constant Field Values
-
IMAGE_DEBUG_TYPE_RESERVED10
public static final byte IMAGE_DEBUG_TYPE_RESERVED10
Reserved debug type.- See Also:
- Constant Field Values
-
IMAGE_DEBUG_TYPE_CLSID
public static final byte IMAGE_DEBUG_TYPE_CLSID
CLS ID debug type.- See Also:
- Constant Field Values
-
-
Method Detail
-
createDebugDirectoryParser
public static DebugDirectoryParser createDebugDirectoryParser(FactoryBundledWithBinaryReader reader, long ptr, int size, OffsetValidator validator) throws java.io.IOException
Constructs a new debug directory parser.- Parameters:
reader- the binary readerptr- the pointer into the binary readersize- the size of the directoryvalidator- the validator for the directory- Throws:
java.io.IOException- if an I/O error occurs
-
getDebugDirectories
public DebugDirectory[] getDebugDirectories()
-
getDebugMisc
public DebugMisc getDebugMisc()
Returns the miscellaneous debug information, or null if it does not exists.- Returns:
- the miscellaneous debug information
-
getDebugCodeView
public DebugCodeView getDebugCodeView()
Returns the CodeView debug information, or null if it does not exists.- Returns:
- the CodeView debug information
-
getDebugCOFFSymbolsHeader
public DebugCOFFSymbolsHeader getDebugCOFFSymbolsHeader()
Returns the COFF debug information, or null if it does not exists.- Returns:
- the COFF debug information
-
getDebugFixup
public DebugFixup getDebugFixup()
Returns the Fixup debug information, or null if it does not exists.- Returns:
- the Fixup debug information
-
-