Package ghidra.app.util.xml
Class ProgramInfo
- java.lang.Object
-
- ghidra.app.util.xml.ProgramInfo
-
public class ProgramInfo extends java.lang.ObjectThis class stores values pulled from the PROGRAM, INFO_SOURCE, and LANGUAGE tag inside a ghidra program XML file. Please see PROGRAM.DTD
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringaddressModelThe size of the addressing (eg, "32 bit").CompilerSpecIDcompilerSpecIDThe program's compilerSpec id, e.g.java.lang.StringendianThe endianess (eg, big or little).java.lang.StringexeFormatThe format of the original executable (eg, PE or ELF).java.lang.StringexePathThe absolute path of where the original executable was imported.java.lang.StringfamilyThe family name of the program's processor (eg, "Intel").java.lang.StringimageBaseThe image base of the program.LanguageIDlanguageIDThe program's language id, e.g.java.lang.StringprocessorNameThe program's processor (eg, Processor.PROCESSOR_X86).java.lang.StringprogramNameThe preferred name of the Program when loaded back into Ghidra.java.lang.StringtimestampThe timestamp of when the XML file was created.java.lang.StringuserThe ID of the user that created the XML file.java.lang.StringversionThe XML version.
-
Constructor Summary
Constructors Constructor Description ProgramInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetNormalizedExternalToolName()Returns normalizedExternalToolName field.java.lang.StringgetTool()Returns tool field.voidsetCompilerSpecID(java.lang.String compiler)voidsetTool(java.lang.String tool)Sets tool field.booleanshouldProcessStack()whether the XmlMgr should process stack frames and references.java.lang.StringtoString()
-
-
-
Field Detail
-
family
public java.lang.String family
The family name of the program's processor (eg, "Intel").
-
processorName
public java.lang.String processorName
The program's processor (eg, Processor.PROCESSOR_X86).
-
languageID
public LanguageID languageID
The program's language id, e.g. "x86:LE:32:default".
-
compilerSpecID
public CompilerSpecID compilerSpecID
The program's compilerSpec id, e.g. "gcc".
-
programName
public java.lang.String programName
The preferred name of the Program when loaded back into Ghidra.
-
timestamp
public java.lang.String timestamp
The timestamp of when the XML file was created.
-
user
public java.lang.String user
The ID of the user that created the XML file.
-
version
public java.lang.String version
The XML version. @deprecated since version 2.1.
-
addressModel
public java.lang.String addressModel
The size of the addressing (eg, "32 bit"). @deprecated since version 2.1.
-
endian
public java.lang.String endian
The endianess (eg, big or little).
-
exePath
public java.lang.String exePath
The absolute path of where the original executable was imported.
-
exeFormat
public java.lang.String exeFormat
The format of the original executable (eg, PE or ELF).
-
imageBase
public java.lang.String imageBase
The image base of the program.
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
shouldProcessStack
public boolean shouldProcessStack()
whether the XmlMgr should process stack frames and references.
-
setCompilerSpecID
public void setCompilerSpecID(java.lang.String compiler)
-
getTool
public java.lang.String getTool()
Returns tool field. This is the name of the tool exactly as written in the XML being imported.- Returns:
- tool field
-
setTool
public void setTool(java.lang.String tool)
Sets tool field. Also sets normalizedExternalToolName to normalized tool names "IDA-PRO" or "GHIDRA" if appropriate, or just sets it to the value of tool.
-
getNormalizedExternalToolName
public java.lang.String getNormalizedExternalToolName()
Returns normalizedExternalToolName field. This is the name of the tool normalized into known categories ("IDA-PRO" or "GHIDRA") if appropriate.- Returns:
- normalizedExternalToolName
-
-