Package ghidra.app.util.xml
Class ProgramInfo
java.lang.Object
ghidra.app.util.xml.ProgramInfo
This class stores values pulled from the
PROGRAM, INFO_SOURCE, and LANGUAGE tag inside a ghidra program XML file.
Please see PROGRAM.DTD
-
Field Summary
Modifier and TypeFieldDescriptionThe size of the addressing (eg, "32 bit").The program's compilerSpec id, e.g.The endianness (eg, big or little).The format of the original executable (eg, PE or ELF).The absolute path of where the original executable was imported.The family name of the program's processor (eg, "Intel").The image base of the program.The program's language id, e.g.The program's processor (eg, Processor.PROCESSOR_X86).The preferred name of the Program when loaded back into Ghidra.The timestamp of when the XML file was created.The ID of the user that created the XML file.The XML version. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns normalizedExternalToolName field.getTool()
Returns tool field.void
setCompilerSpecID
(String compiler) void
Sets tool field.boolean
whether the XmlMgr should process stack frames and references.toString()
-
Field Details
-
family
The family name of the program's processor (eg, "Intel"). -
processorName
The program's processor (eg, Processor.PROCESSOR_X86). -
languageID
The program's language id, e.g. "x86:LE:32:default". -
compilerSpecID
The program's compilerSpec id, e.g. "gcc". -
programName
The preferred name of the Program when loaded back into Ghidra. -
timestamp
The timestamp of when the XML file was created. -
user
The ID of the user that created the XML file. -
version
The XML version. @deprecated since version 2.1. -
addressModel
The size of the addressing (eg, "32 bit"). @deprecated since version 2.1. -
endian
The endianness (eg, big or little). -
exePath
The absolute path of where the original executable was imported. -
exeFormat
The format of the original executable (eg, PE or ELF). -
imageBase
The image base of the program.
-
-
Constructor Details
-
ProgramInfo
public ProgramInfo()
-
-
Method Details
-
toString
-
shouldProcessStack
public boolean shouldProcessStack()whether the XmlMgr should process stack frames and references. -
setCompilerSpecID
-
getTool
Returns tool field. This is the name of the tool exactly as written in the XML being imported.- Returns:
- tool field
-
setTool
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
Returns normalizedExternalToolName field. This is the name of the tool normalized into known categories ("IDA-PRO" or "GHIDRA") if appropriate.- Returns:
- normalizedExternalToolName
-