decompiler
1.0.0
|
An injection context that can be serialized and sent to the Ghidra client. More...
#include <inject_ghidra.hh>
Public Member Functions | |
virtual void | encode (Encoder &encoder) const |
Encode this context to a stream as a <context> element. More... | |
Public Member Functions inherited from ghidra::InjectContext | |
virtual | ~InjectContext (void) |
Destructor. | |
virtual void | clear (void) |
Release resources (from last injection) | |
Additional Inherited Members | |
Public Attributes inherited from ghidra::InjectContext | |
Architecture * | glb |
Architecture associated with the injection. | |
Address | baseaddr |
Address of instruction causing inject. | |
Address | nextaddr |
Address of following instruction. | |
Address | calladdr |
If the instruction being injected is a call, this is the address being called. | |
vector< VarnodeData > | inputlist |
Storage location for input parameters. | |
vector< VarnodeData > | output |
Storage location for output. | |
An injection context that can be serialized and sent to the Ghidra client.
This adds the capability to wrap up the context data in <context> XML tag that can then be forwarded to the Ghidra client.
|
virtual |
Encode this context to a stream as a <context> element.
encoder | is the stream encoder |
Implements ghidra::InjectContext.
References ghidra::InjectContext::baseaddr, ghidra::InjectContext::calladdr, ghidra::Encoder::closeElement(), ghidra::Address::encode(), ghidra::AddrSpace::encodeAttributes(), ghidra::InjectContext::inputlist, ghidra::VarnodeData::offset, ghidra::Encoder::openElement(), ghidra::InjectContext::output, ghidra::VarnodeData::size, and ghidra::VarnodeData::space.