ROSE
0.9.6a
|
Callback to find functions that are between padding. More...
#include <Partitioner.h>
Public Member Functions | |
FindInterPadFunctions () | |
~FindInterPadFunctions () | |
virtual bool | operator() (bool enabled, const Args &args) |
The actual callback function. More... | |
Public Member Functions inherited from Partitioner::ByteRangeCallback | |
virtual | ~ByteRangeCallback () |
Public Attributes | |
DataRangeMap * | padding_ranges |
Information about all the padding data blocks that belong to functions. More... | |
size_t | nfound |
Number of functions found and added by this callback. More... | |
Callback to find functions that are between padding.
This callback looks for BLK_PADDING data blocks that are separated from one another by a region of unassigned bytes, and causes the first of those bytes to be a function entry address. The padding that follows is moved into the new function.
Definition at line 1375 of file Partitioner.h.
|
inline |
Definition at line 1379 of file Partitioner.h.
|
inline |
Definition at line 1380 of file Partitioner.h.
References padding_ranges.
|
virtual |
The actual callback function.
This needs to be defined in subclasses.
Implements Partitioner::ByteRangeCallback.
Definition at line 2272 of file Partitioner.C.
References Partitioner::add_function(), Partitioner::append(), SgAsmBlock::BLK_PADDING, Partitioner::debug, Partitioner::Function::entry_va, Range< T >::first(), SgAsmFunction::FUNC_INTERPADFUNC, Range< T >::last(), Range< rose_addr_t >::maximum(), Range< rose_addr_t >::minimum(), Partitioner::padding_extent(), Partitioner::ByteRangeCallback::Args::partitioner, and Partitioner::ByteRangeCallback::Args::range.
DataRangeMap* Partitioner::FindInterPadFunctions::padding_ranges |
Information about all the padding data blocks that belong to functions.
Definition at line 1376 of file Partitioner.h.
Referenced by ~FindInterPadFunctions().
size_t Partitioner::FindInterPadFunctions::nfound |
Number of functions found and added by this callback.
Definition at line 1377 of file Partitioner.h.