-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
46 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,49 @@ | ||
.. _`sec:PatchModifier.h`: | ||
|
||
PatchModifier.h | ||
=============== | ||
############### | ||
|
||
.. cpp:namespace:: Dyninst::PatchAPI | ||
|
||
.. cpp:class:: PatchModifier | ||
|
||
.. cpp:function:: static bool redirect(PatchEdge *edge, PatchBlock *target) | ||
|
||
Set the target of the existing edge, ``edge``, to ``target``. | ||
|
||
.. cpp:function:: static PatchBlock* split(PatchBlock* b, Address addr, bool trust = false, Address newlast = (Address)-1) | ||
|
||
Split the block, ``b``, at the address ``addr``. | ||
|
||
We double-check whether the address is a valid instruction boundary unless trust is true. | ||
|
||
.. cpp:function:: static bool remove(std::vector<PatchBlock *> &blocks, bool force = false) | ||
|
||
Remove the blocks, ``blocks`` from the CFG. | ||
|
||
The block must be unreachable (that is, have no in-edges) unless ``force`` is ``true``. | ||
|
||
.. cpp:function:: static bool remove(PatchFunction* f) | ||
|
||
Removes the function ``f`` and all of its blocks. | ||
|
||
.. cpp:function:: static InsertedCode::Ptr insert(PatchObject* o, SnippetPtr snip, Point* point) | ||
|
||
Inserts the snippet ``snip`` into the object ``o`` at point ``point``. | ||
|
||
Returns the inserted code block. | ||
|
||
.. cpp:function:: static InsertedCode::Ptr insert(PatchObject* o, void* start, unsigned size) | ||
|
||
Inserts the ``size`` bytes from ``start`` into the first free address in object ``o``. | ||
|
||
Returns the inserted code block. | ||
|
||
.. cpp:class:: InsertedCode | ||
|
||
.. cpp:namespace:: Dyninst::patchAPI | ||
.. cpp:type:: boost::shared_ptr<InsertedCode> Ptr | ||
|
||
.. cpp:function:: InsertedCode() | ||
.. cpp:function:: PatchBlock* entry() | ||
.. cpp:function:: const std::vector<PatchEdge*> &exits() | ||
.. cpp:function:: const std::set<PatchBlock*> &blocks() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters