Ghidra Decompiler Analysis Engine
|
Extension point for building a GNU BFD capable Architecture. More...
#include <bfd_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. More... | |
virtual bool | isFileMatch (const string &filename) const |
Determine if this extension can handle this file. More... | |
virtual bool | isXmlMatch (Document *doc) const |
Determine is this extension can handle this XML document. More... | |
Public Member Functions inherited from ArchitectureCapability | |
virtual void | initialize (void) |
Do specialized initialization. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from ArchitectureCapability | |
static ArchitectureCapability * | findCapability (const string &filename) |
Find an extension to process a file. More... | |
static ArchitectureCapability * | findCapability (Document *doc) |
Find an extension to process an XML document. More... | |
static ArchitectureCapability * | getCapability (const string &name) |
Get a capability by name. More... | |
static void | sortCapabilities (void) |
Sort extensions. More... | |
Static Public Member Functions inherited from CapabilityPoint | |
static void | initializeAll (void) |
Finish initialization for all extension points. More... | |
Protected Member Functions inherited from CapabilityPoint | |
CapabilityPoint (void) | |
Construct extension capability exactly once. More... | |
Protected Attributes inherited from ArchitectureCapability | |
string | name |
Identifier for this capability. | |
Extension point for building a GNU BFD 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 ArchitectureCapability.
|
virtual |
Determine if this extension can handle this file.
filename | is the name of the file to examine |
Implements 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 ArchitectureCapability.