Class ProgramInfo

java.lang.Object
ghidra.app.util.xml.ProgramInfo

public class ProgramInfo extends Object
This class stores values pulled from the PROGRAM, INFO_SOURCE, and LANGUAGE tag inside a ghidra program XML file. Please see PROGRAM.DTD
  • Field Details

    • family

      public String family
      The family name of the program's processor (eg, "Intel").
    • processorName

      public 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 String programName
      The preferred name of the Program when loaded back into Ghidra.
    • timestamp

      public String timestamp
      The timestamp of when the XML file was created.
    • user

      public String user
      The ID of the user that created the XML file.
    • version

      public String version
      The XML version. @deprecated since version 2.1.
    • addressModel

      public String addressModel
      The size of the addressing (eg, "32 bit"). @deprecated since version 2.1.
    • endian

      public String endian
      The endianness (eg, big or little).
    • exePath

      public String exePath
      The absolute path of where the original executable was imported.
    • exeFormat

      public String exeFormat
      The format of the original executable (eg, PE or ELF).
    • imageBase

      public String imageBase
      The image base of the program.
  • Constructor Details

    • ProgramInfo

      public ProgramInfo()
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • shouldProcessStack

      public boolean shouldProcessStack()
      whether the XmlMgr should process stack frames and references.
    • setCompilerSpecID

      public void setCompilerSpecID(String compiler)
    • getTool

      public 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(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 String getNormalizedExternalToolName()
      Returns normalizedExternalToolName field. This is the name of the tool normalized into known categories ("IDA-PRO" or "GHIDRA") if appropriate.
      Returns:
      normalizedExternalToolName