|
decompiler 1.0.0
|
Convert CALL or CALLIND into a CALL with a new destination address. More...
#include <override.hh>
Public Member Functions | |
| CallCall (const Address &dest) | |
| Constructor. | |
| 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_call" |
| Name of the call -> call override record. | |
Private Attributes | |
| Address | callAddress |
| Address of (new) CALL. | |
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... | |
Convert CALL or CALLIND into a CALL with a new destination address.
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::CPUI_CALL, ghidra::Funcdata::findPrimaryBranch(), ghidra::PcodeOp::isDead(), ghidra::Funcdata::newCodeRef(), ghidra::Funcdata::opSetInput(), 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.