X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fdisassembler%2FInstruction.hxx;h=e79b24f38408ded9dfe060699914014a6810d3fb;hp=afb5193a158ad1ad7d698bffeb5a49f3585e094f;hb=4443ad3e38327c776dcc68538591456d37c9ed6f;hpb=2a014774e29e324bc5b5f26143d0384351738ca1 diff --git a/src/disassembler/Instruction.hxx b/src/disassembler/Instruction.hxx index afb5193..e79b24f 100644 --- a/src/disassembler/Instruction.hxx +++ b/src/disassembler/Instruction.hxx @@ -1,6 +1,23 @@ +#ifndef INCLUDE__Instruction_hxx_ +#define INCLUDE__Instruction_hxx_ +#include +#include +#include class Instruction { public: + Instruction(uint64_t address, const std::string& text, const std::vector& bytes, const std::string& reference) + : address(address), text(text), bytes(bytes), reference(reference) {} + uint64_t getAddress() const {return address;} + const std::string& getText() const {return text;} + const std::vector& getBytes() const {return bytes;} + const std::string& getReference() const {return reference;} private: + uint64_t address; + std::string text; + std::vector bytes; + std::string reference; }; + +#endif /* INCLUDE__Instruction_hxx_ */