Skip to content

Commit

Permalink
Add CodeObject::parse overloads to accept multiple targets (#1671)
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Apr 3, 2024
1 parent af53fd2 commit 796851e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/parseAPI/public/CodeObject.h.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,25 @@ CodeObject.h
enables recursive traversal parsing when enabled; otherwise only instructions
reachable through intraprocedural control flow are visited.

.. cpp:function:: void parse(const std::vector<Address> &targets, bool recursive)

The same as :cpp:func:`void CodeObject::parse(Address target, bool recursive)`, but for multiple targets.

This is optimized to be faster than calling ``parse`` multiple times.

.. cpp:function:: void parse(CodeRegion* cr, Address target, bool recursive)

Parses the region, ``cr``, of the binary starting at ``target``. ``recursive``
enables recursive traversal parsing when enabled; otherwise only instructions
reachable through intraprocedural control flow are visited.

.. cpp:function:: void parse(const std::vector<std::pair<Address, CodeRegion *>> &targets, bool recursive)

The same as :cpp:func:`void CodeObject::parse(CodeRegion* cr, Address target, bool recursive)`, but
for multiple targets.

This is optimized to be faster than calling ``parse`` multiple times.

.. cpp:function:: bool parseNewEdges(vector<NewEdgeToParse>& worklist)

Parses a set of newly created edges specified in ``worklist``
Expand Down

0 comments on commit 796851e

Please sign in to comment.