Package ghidra.app.util.bin.format.pdb
Class PdbInfoCodeView
- java.lang.Object
-
- ghidra.app.util.bin.format.pdb.PdbInfoCodeView
-
- All Implemented Interfaces:
PdbInfo,StructConverter
public class PdbInfoCodeView extends java.lang.Object implements StructConverter, PdbInfo
Older style pdb information, using a simple 32bit hash to link the pdb to its binary.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanisMatch(BinaryReader reader, long offset)Returns true if the pdb information at the specified offset is aPdbInfoCodeViewtype (based on the signature at that offset).booleanisValid()Returns true if this instance is valid.static PdbInfoCodeViewread(BinaryReader reader, long offset)Reads the pdb information from a PE binary.voidserializeToOptions(Options options)Writes the various PDB info fields to a program's options.DataTypetoDataType()Returns a structure datatype representing the contents of the implementor of this interface.
-
-
-
Method Detail
-
isMatch
public static boolean isMatch(BinaryReader reader, long offset) throws java.io.IOException
Returns true if the pdb information at the specified offset is aPdbInfoCodeViewtype (based on the signature at that offset).- Parameters:
reader-BinaryReaderoffset- offset of the Pdb information- Returns:
- boolean true if it is a
PdbInfoCodeViewtype - Throws:
java.io.IOException- if error reading data
-
read
public static PdbInfoCodeView read(BinaryReader reader, long offset) throws java.io.IOException
Reads the pdb information from a PE binary.- Parameters:
reader-BinaryReaderoffset- offset of the Pdb information- Returns:
- new
PdbInfoCodeViewinstance, never null - Throws:
java.io.IOException- if error reading data
-
isValid
public boolean isValid()
Description copied from interface:PdbInfoReturns true if this instance is valid.
-
serializeToOptions
public void serializeToOptions(Options options)
Description copied from interface:PdbInfoWrites the various PDB info fields to a program's options.- Specified by:
serializeToOptionsin interfacePdbInfo- Parameters:
options- Options of a Program to write to
-
toDataType
public DataType toDataType()
Description copied from interface:StructConverterReturns a structure datatype representing the contents of the implementor of this interface.For example, given:
class A { int foo; double bar; }The return value should be a structure data type with two data type components; an INT and a DOUBLE. The structure should contain field names and, if possible, field comments.
- Specified by:
toDataTypein interfaceStructConverter- Returns:
- returns a structure datatype representing the implementor of this interface
- See Also:
StructureDataType
-
-