Class DebugDirectoryParser
- java.lang.Object
-
- ghidra.app.util.bin.format.pe.debug.DebugDirectoryParser
-
public class DebugDirectoryParser extends java.lang.Object
A helper class to parsing different types of debug information from a debug directory
-
-
Field Summary
Fields Modifier and Type Field Description static byte
IMAGE_DEBUG_TYPE_BORLAND
Borland debug type.static byte
IMAGE_DEBUG_TYPE_CLSID
CLS ID debug type.static byte
IMAGE_DEBUG_TYPE_CODEVIEW
CodeView debug type.static byte
IMAGE_DEBUG_TYPE_COFF
COFF debug type.static byte
IMAGE_DEBUG_TYPE_EXCEPTION
Exception debug type.static byte
IMAGE_DEBUG_TYPE_FIXUP
Fixup debug type.static byte
IMAGE_DEBUG_TYPE_FPO
FPO debug type.static byte
IMAGE_DEBUG_TYPE_MISC
Misc debug type.static byte
IMAGE_DEBUG_TYPE_OMAP_FROM_SRC
OMAP-From-Source debug type.static byte
IMAGE_DEBUG_TYPE_OMAP_TO_SRC
OMAP-To-Source debug type.static byte
IMAGE_DEBUG_TYPE_RESERVED10
Reserved debug type.static byte
IMAGE_DEBUG_TYPE_UNKNOWN
Unknown 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 DebugDirectoryParser
createDebugDirectoryParser(FactoryBundledWithBinaryReader reader, long ptr, int size, OffsetValidator validator)
Constructs a new debug directory parser.DebugCodeView
getDebugCodeView()
Returns the CodeView debug information, or null if it does not exists.DebugCOFFSymbolsHeader
getDebugCOFFSymbolsHeader()
Returns the COFF debug information, or null if it does not exists.DebugDirectory[]
getDebugDirectories()
DebugFixup
getDebugFixup()
Returns the Fixup debug information, or null if it does not exists.DebugMisc
getDebugMisc()
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 directoryntHeader
-- 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
-
-