Ghidra Decompiler Analysis Engine
Public Member Functions | List of all members
DisassemblyEngine Class Reference
Inheritance diagram for DisassemblyEngine:
Inheritance graph
[legend]
Collaboration diagram for DisassemblyEngine:
Collaboration graph
[legend]

Public Member Functions

void init (const Translate *t)
 
virtual void dump (const Address &addr, OpCode opc, VarnodeData *outvar, VarnodeData *vars, int4 isize)
 The main pcode emit method. More...
 
void disassemble (const Address &addr, DisassemblyResult &res)
 
void addTarget (const Address &addr)
 
- Public Member Functions inherited from PcodeEmit
void restoreXmlOp (const Element *el, const AddrSpaceManager *trans)
 Emit pcode directly from an XML tag. More...
 
const uint1 * restorePackedOp (const Address &addr, const uint1 *ptr, const AddrSpaceManager *trans)
 Emit pcode directly from a packed byte stream. More...
 

Additional Inherited Members

- Public Types inherited from PcodeEmit
enum  {
  unimpl_tag = 0x20, inst_tag = 0x21, op_tag = 0x22, void_tag = 0x23,
  spaceid_tag = 0x24, addrsz_tag = 0x25, end_tag = 0x60
}
 
- Static Public Member Functions inherited from PcodeEmit
static const uint1 * unpackOffset (const uint1 *ptr, uintb &off)
 Helper function for unpacking an offset from a pcode byte stream. More...
 
static const uint1 * unpackVarnodeData (const uint1 *ptr, VarnodeData &v, const AddrSpaceManager *trans)
 Helper function for unpacking a varnode from a pcode byte stream. More...
 

Member Function Documentation

◆ dump()

void DisassemblyEngine::dump ( const Address addr,
OpCode  opc,
VarnodeData outvar,
VarnodeData vars,
int4  isize 
)
virtual

The main pcode emit method.

A single pcode instruction is returned to the application via this method. Particular applications override it to tailor how the operations are used.

Parameters
addris the Address of the machine instruction
opcis the opcode of the particular pcode instruction
outvarif not null is a pointer to data about the output varnode
varsis a pointer to an array of VarnodeData for each input varnode
isizeis the number of input varnodes

Implements PcodeEmit.


The documentation for this class was generated from the following files: