Skip to content

Commit

Permalink
Add dyninstAPI/RelDataWidget.h
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Apr 3, 2024
1 parent 731b4d9 commit 1241ec1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
36 changes: 36 additions & 0 deletions docs/dyninstAPI/developer/Relocation/Widgets/RelDataWidget.h.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,39 @@ RelDataWidget.h
###############

.. cpp:namespace:: Dyninst::Relocation

.. cpp:class:: RelDataWidget : public Widget

Represents generation for a PC-relative memory loadstore

Read vs. write doesn't matter now but might in the future.

.. cpp:type:: boost::shared_ptr<RelDataWidget> Ptr
.. cpp:function:: virtual bool generate(const codeGen &, const RelocBlock *, CodeBuffer &)
.. cpp:function:: TrackerElement *tracker(const RelocBlock *t) const
.. cpp:function:: static Ptr create(InstructionAPI::Instruction insn, Address addr, Address target)
.. cpp:function:: virtual ~RelDataWidget()
.. cpp:function:: virtual std::string format() const
.. cpp:function:: virtual unsigned size() const
.. cpp:function:: virtual Address addr() const
.. cpp:function:: private RelDataWidget(InstructionAPI::Instruction insn, Address addr, Address target)
.. cpp:member:: private InstructionAPI::Instruction insn_
.. cpp:member:: private Address addr_
.. cpp:member:: private Address target_


.. cpp:struct:: RelDataPatch : public Patch

Read vs. write doesn't matter now but might in the future.

.. cpp:function:: private RelDataPatch(InstructionAPI::Instruction a, Address b, Address o)
.. cpp:function:: private virtual bool apply(codeGen &gen, CodeBuffer *buffer)
.. cpp:function:: private virtual unsigned estimate(codeGen &templ)
.. cpp:function:: private virtual ~RelDataPatch()
.. cpp:function:: private void setFunc(func_instance *_func)
.. cpp:function:: private void setBlock(block_instance *_block)
.. cpp:member:: private InstructionAPI::Instruction orig_insn
.. cpp:member:: private Address target_addr{}
.. cpp:member:: private Address orig{}
.. cpp:member:: private func_instance *func{}
.. cpp:member:: private block_instance *block{}
4 changes: 0 additions & 4 deletions dyninstAPI/src/Relocation/Widgets/RelDataWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ class block_instance;

namespace Dyninst {
namespace Relocation {
// Represents generation for a PC-relative
// memory load/store

class RelDataWidget : public Widget {
public:
Expand Down Expand Up @@ -66,8 +64,6 @@ class RelDataWidget : public Widget {
InstructionAPI::Instruction insn_;
Address addr_;
Address target_;
// Read vs. write doesn't matter now but might
// in the future.
};


Expand Down

0 comments on commit 1241ec1

Please sign in to comment.