|
Ghidra 11.4.2
Ghidra internal decompiler documentation.
|
Extension for building an XML format capable Architecture. More...
#include <xml_arch.hh>
Public Member Functions | |
| virtual Architecture * | buildArchitecture (const string &filename, const string &target, ostream *estream) |
| Build an Architecture given a raw file or data. | |
| virtual bool | isFileMatch (const string &filename) const |
| Determine if this extension can handle this file. | |
| virtual bool | isXmlMatch (Document *doc) const |
| Determine is this extension can handle this XML document. | |
Public Member Functions inherited from ghidra::ArchitectureCapability | |
| const string & | getName (void) const |
| Get the capability identifier. | |
| virtual void | initialize (void) |
| Do specialized initialization. | |
Public Member Functions inherited from ghidra::CapabilityPoint | |
| virtual | ~CapabilityPoint (void) |
| Destructor. | |
Private Member Functions | |
| XmlArchitectureCapability (void) | |
| Singleton. | |
| XmlArchitectureCapability (const XmlArchitectureCapability &op2) | |
| Not implemented. | |
| XmlArchitectureCapability & | operator= (const XmlArchitectureCapability &op2) |
| Not implemented. | |
Static Private Attributes | |
| static XmlArchitectureCapability | xmlArchitectureCapability |
| The singleton instance. | |
Additional Inherited Members | |
Static Public Member Functions inherited from ghidra::ArchitectureCapability | |
| static ArchitectureCapability * | findCapability (const string &filename) |
| Find an extension to process a file. | |
| static ArchitectureCapability * | findCapability (Document *doc) |
| Find an extension to process an XML document. | |
| static ArchitectureCapability * | getCapability (const string &name) |
| Get a capability by name. | |
| static void | sortCapabilities (void) |
| Sort extensions. | |
| static uint4 | getMajorVersion (void) |
| Get major decompiler version. | |
| static uint4 | getMinorVersion (void) |
| Get minor decompiler version. | |
Static Public Member Functions inherited from ghidra::CapabilityPoint | |
| static void | initializeAll (void) |
| Finish initialization for all extension points. | |
Protected Member Functions inherited from ghidra::CapabilityPoint | |
| CapabilityPoint (void) | |
| Construct extension capability exactly once. | |
Protected Attributes inherited from ghidra::ArchitectureCapability | |
| string | name |
| Identifier for this capability. | |
Extension for building an XML format capable Architecture.
|
virtual |
Build an Architecture given a raw file or data.
This is implemented by each separate extension. The method is handed a filename and possibly external target information and must build the Architecture object, initializing all the major subcomponents, using just this info.
| filename | is the path to the executable file to examine |
| target | if non-empty is a language id string |
| estream | is an output stream for error messages |
Implements ghidra::ArchitectureCapability.
|
virtual |
Determine if this extension can handle this file.
| filename | is the name of the file to examine |
Implements ghidra::ArchitectureCapability.
|
virtual |
Determine is this extension can handle this XML document.
If a file to analyze is XML based, this method examines the XML parse to determine if this extension can understand the document
| doc | is the parsed XML document |
Implements ghidra::ArchitectureCapability.
References ghidra::Element::getName(), and ghidra::Document::getRoot().