ROSE
0.9.6a
|
Callback to add post-function instructions to the preceding function. More...
#include <Partitioner.h>
Public Member Functions | |
FindPostFunctionInsns () | |
virtual bool | operator() (bool enabled, const Args &args) |
The actual callback function. More... | |
Public Member Functions inherited from Partitioner::InsnRangeCallback | |
virtual | ~InsnRangeCallback () |
Public Attributes | |
size_t | nfound |
Number of basic blocks added to functions by this callback. More... | |
Callback to add post-function instructions to the preceding function.
Any instructions that immediately follow a normal function (anything but FUNC_INTERPAD or FUNC_THUNK) but are not assigned to any function are added to that function as instructions. This should be called after inter-function padding has been discovered, or else the padding will end up as part of the same data block.
See also FindData. It probably doesn't make sense to use both.
Note: This is highly experimental. [RPM 2011-09-22]
Definition at line 1392 of file Partitioner.h.
|
inline |
Definition at line 1395 of file Partitioner.h.
|
virtual |
The actual callback function.
This needs to be defined in subclasses.
Implements Partitioner::InsnRangeCallback.
Definition at line 2430 of file Partitioner.C.
References Partitioner::BasicBlock::address(), Partitioner::append(), SgAsmBlock::BLK_POSTFUNC, Partitioner::debug, Partitioner::Function::entry_va, Partitioner::find_bb_containing(), Partitioner::find_instruction(), SgAsmFunction::FUNC_PADDING, SgAsmFunction::FUNC_THUNK, Partitioner::BasicBlock::function, Partitioner::Instruction::get_address(), Partitioner::Instruction::get_size(), Partitioner::InsnRangeCallback::Args::insn_begin, Partitioner::InsnRangeCallback::Args::insn_prev, Partitioner::BasicBlock::insns, Partitioner::InsnRangeCallback::Args::ninsns, Partitioner::InsnRangeCallback::Args::partitioner, Partitioner::Function::pending, and Partitioner::Function::reason.
size_t Partitioner::FindPostFunctionInsns::nfound |
Number of basic blocks added to functions by this callback.
Definition at line 1393 of file Partitioner.h.