Package ghidra.app.util.bin.format.pdb
Class PdbInfoDotNet
java.lang.Object
ghidra.app.util.bin.format.pdb.PdbInfoDotNet
- All Implemented Interfaces:
PdbInfo,StructConverter
Newer style pdb information, using a GUID to link the pdb to its binary.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PdbInfoDotNetfromValues(String pdbPath, int age, GUID guid) Creates an instance from explicit values.static booleanisMatch(BinaryReader reader, long offset) Returns true if the pdb information at the specified offset is aPdbInfoDotNettype (based on the signature at that offset).booleanisValid()Returns true if this instance is valid.static PdbInfoDotNetread(BinaryReader reader, long offset) Reads an instance from the stream.voidserializeToOptions(Options options) Writes the various PDB info fields to a program's options.Returns a structure datatype representing the contents of the implementor of this interface.
-
Method Details
-
isMatch
Returns true if the pdb information at the specified offset is aPdbInfoDotNettype (based on the signature at that offset).- Parameters:
reader-BinaryReaderoffset- offset of the Pdb information- Returns:
- boolean true if it is a
PdbInfoDotNettype - Throws:
IOException- if error reading data
-
read
Reads an instance from the stream.- Parameters:
reader-BinaryReaderto read fromoffset- position of the pdb info- Returns:
- new instance, never null
- Throws:
IOException- if IO error or data format error
-
fromValues
Creates an instance from explicit values.- Parameters:
pdbPath- String path / filename of the pdb fileage- ageguid-GUID- Returns:
- new instance, never null
-
isValid
public boolean isValid()Description copied from interface:PdbInfoReturns true if this instance is valid. -
serializeToOptions
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
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:
-