|
decompiler 1.0.0
|
Override a BRANCH, BRANCHIND, or RETURN to become a CALL or CALLIND operation. More...
#include <override.hh>
Public Member Functions | |
| virtual void | performOverride (const Address &addr, Funcdata &data) const |
| Perform p-code modifications for the instruction at the given address. More... | |
| virtual void | encode (Encoder &encoder, const Address &addr) const |
| Encode this record to stream. More... | |
| virtual void | printRaw (ostream &s, const Address &addr) const |
| Print a description of the override as a console message. More... | |
Public Member Functions inherited from ghidra::Override::Record | |
| virtual | ~Record (void) |
| Destructor. | |
| virtual void | performOverride (const Address &addr, Funcdata &data) const =0 |
| Perform p-code modifications for the instruction at the given address. More... | |
| virtual void | encode (Encoder &encoder, const Address &addr) const =0 |
| Encode this record to stream. More... | |
| virtual void | printRaw (ostream &s, const Address &addr) const =0 |
| Print a description of the override as a console message. More... | |
Static Public Attributes | |
| static const string | NAME = "call" |
| Name of the call override record. | |
Additional Inherited Members | |
Static Public Member Functions inherited from ghidra::Override::Record | |
| static Record * | allocateFlow (const string &name) |
| Return a corresponding flow override record. More... | |
| static Record * | allocateCallDest (const string &name, const Address &dest) |
| Return a corresponding call destination override. More... | |
Override a BRANCH, BRANCHIND, or RETURN to become a CALL or CALLIND operation.
Encode this record to stream.
| encoder | is the stream |
| addr | is the address of the instruction the override applies to |
Implements ghidra::Override::Record.
References ghidra::Encoder::closeElement(), ghidra::Address::encode(), ghidra::Encoder::openElement(), and ghidra::Encoder::writeString().
|
virtual |
Perform p-code modifications for the instruction at the given address.
| addr | is the given address of the instruction |
| data | is the function |
Implements ghidra::Override::Record.
References ghidra::PcodeOp::code(), ghidra::CPUI_BRANCH, ghidra::CPUI_BRANCHIND, ghidra::CPUI_CALL, ghidra::CPUI_CALLIND, ghidra::CPUI_CBRANCH, ghidra::CPUI_RETURN, ghidra::Funcdata::findPrimaryBranch(), ghidra::PcodeOp::isDead(), and ghidra::Funcdata::opSetOpcode().
|
virtual |
Print a description of the override as a console message.
| s | is the stream to write to |
| addr | is the address this override applies to |
Implements ghidra::Override::Record.