Extension point for building a GNU BFD capable Architecture.
More...
#include <bfd_arch.hh>
Extension point for building a GNU BFD capable Architecture.
◆ buildArchitecture()
Architecture * BfdArchitectureCapability::buildArchitecture |
( |
const string & |
filename, |
|
|
const string & |
target, |
|
|
ostream * |
estream |
|
) |
| |
|
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.
- Parameters
-
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.
◆ isFileMatch()
bool BfdArchitectureCapability::isFileMatch |
( |
const string & |
filename | ) |
const |
|
virtual |
Determine if this extension can handle this file.
- Parameters
-
filename | is the name of the file to examine |
- Returns
- true is this extension is suitable for analyzing the file
Implements ArchitectureCapability.
◆ isXmlMatch()
bool BfdArchitectureCapability::isXmlMatch |
( |
Document * |
doc | ) |
const |
|
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
- Parameters
-
doc | is the parsed XML document |
- Returns
- true if this extension understands the XML
Implements ArchitectureCapability.
The documentation for this class was generated from the following files: