-
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
1 changed file
with
50 additions
and
53 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,57 +1,54 @@ | ||
BPatch_frame.h | ||
============== | ||
.. _`sec:BPatch_frame.h`: | ||
|
||
``BPatch_frame`` | ||
---------------- | ||
.. cpp:namespace:: BPatch_frame | ||
BPatch_frame.h | ||
############## | ||
|
||
.. cpp:class:: BPatch_frame | ||
A **BPatch_frame** object represents a stack frame. The getCallStack | ||
member function of BPatch_thread returns a vector of BPatch_frame | ||
objects representing the frames currently on the stack. | ||
|
||
.. cpp:function:: BPatch_frameType getFrameType() | ||
Return the type of the stack frame. Possible types are: | ||
|
||
+------------------------+------------------------------------+ | ||
| **Frame Type** | **Meaning** | | ||
+------------------------+------------------------------------+ | ||
| BPatch_frameNormal | A normal stack frame. | | ||
+------------------------+------------------------------------+ | ||
| BPatch_frameSignal | A frame that represents a signal | | ||
| | invocation. | | ||
+------------------------+------------------------------------+ | ||
| BPatch_frameTrampoline | A frame the represents a call into | | ||
| | instrumentation code. | | ||
+------------------------+------------------------------------+ | ||
|
||
.. cpp:function:: void *getFP() | ||
Return the frame pointer for the stack frame. | ||
|
||
.. cpp:function:: void *getPC() | ||
Returns the program counter associated with the stack frame. | ||
|
||
.. cpp:function:: BPatch_function *findFunction() | ||
Returns the function associated with the stack frame. | ||
|
||
.. cpp:function:: BPatch_thread *getThread() | ||
Returns the thread associated with the stack frame. | ||
|
||
.. cpp:function:: BPatch_point *getPoint() | ||
.. cpp:function:: BPatch_point *findPoint() | ||
For stack frames corresponding to inserted instrumentation, returns the | ||
instrumentation point where that instrumentation was inserted. For other | ||
frames, returns NULL. | ||
|
||
.. cpp:function:: bool isSynthesized() | ||
Returns true if this frame was artificially created, false otherwise. | ||
|
||
A **BPatch_frame** object represents a stack frame. The getCallStack | ||
member function of BPatch_thread returns a vector of BPatch_frame | ||
objects representing the frames currently on the stack. | ||
|
||
.. cpp:function:: BPatch_frameType getFrameType() | ||
|
||
Return the type of the stack frame. Possible types are: | ||
|
||
+------------------------+------------------------------------+ | ||
| **Frame Type** | **Meaning** | | ||
+------------------------+------------------------------------+ | ||
| BPatch_frameNormal | A normal stack frame. | | ||
+------------------------+------------------------------------+ | ||
| BPatch_frameSignal | A frame that represents a signal | | ||
| | invocation. | | ||
+------------------------+------------------------------------+ | ||
| BPatch_frameTrampoline | A frame the represents a call into | | ||
| | instrumentation code. | | ||
+------------------------+------------------------------------+ | ||
|
||
.. cpp:function:: void *getFP() | ||
|
||
Return the frame pointer for the stack frame. | ||
|
||
.. cpp:function:: void *getPC() | ||
|
||
Returns the program counter associated with the stack frame. | ||
|
||
.. cpp:function:: BPatch_function *findFunction() | ||
|
||
Returns the function associated with the stack frame. | ||
|
||
.. cpp:function:: BPatch_thread *getThread() | ||
|
||
Returns the thread associated with the stack frame. | ||
|
||
.. cpp:function:: BPatch_point *getPoint() | ||
|
||
.. cpp:function:: BPatch_point *findPoint() | ||
|
||
For stack frames corresponding to inserted instrumentation, returns the | ||
instrumentation point where that instrumentation was inserted. For other | ||
frames, returns NULL. | ||
|
||
.. cpp:function:: bool isSynthesized() | ||
|
||
Returns true if this frame was artificially created, false otherwise. |