Skip to content

Commit

Permalink
Add dyninstAPI/BPatch_sourceBlock.h
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Apr 3, 2024
1 parent 04c38ee commit 273d893
Showing 1 changed file with 20 additions and 22 deletions.
42 changes: 20 additions & 22 deletions docs/dyninstAPI/public/BPatch_sourceBlock.h.rst
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
BPatch_sourceBlock.h
====================
.. _`sec:BPatch_sourceBlock.h`:

``BPatch_sourceBlock``
----------------------
.. cpp:namespace:: BPatch_sourceBlock
BPatch_sourceBlock.h
####################

.. cpp:class:: BPatch_sourceBlock
An object of this class represents a source code level block. Each
source block objects consists of a source file and a set of source lines
in that source file. This class is used to fill source line information
for each basic block in the control flow graph. For each basic block in
the control flow graph there is one or more source block object(s) that
correspond to the source files and their lines contributing to the
instruction sequence of the basic block.
.. cpp:function:: const char* getSourceFile()
Returns a pointer to the name of the source file in which this source
block occurs.
.. cpp:function:: void getSourceLines(std::vector<unsigned short>&)
Fill the given vector with a list of the lines contained within this
source block.
An object of this class represents a source code level block. Each
source block objects consists of a source file and a set of source lines
in that source file. This class is used to fill source line information
for each basic block in the control flow graph. For each basic block in
the control flow graph there is one or more source block object(s) that
correspond to the source files and their lines contributing to the
instruction sequence of the basic block.

.. cpp:function:: const char* getSourceFile()

Returns a pointer to the name of the source file in which this source
block occurs.

.. cpp:function:: void getSourceLines(std::vector<unsigned short>&)

Fill the given vector with a list of the lines contained within this
source block.

0 comments on commit 273d893

Please sign in to comment.