X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fdisassembler%2FInstruction.hxx;h=0e92dd5b5a4de929a8b36b86fc79134ac3ec9f60;hp=afb5193a158ad1ad7d698bffeb5a49f3585e094f;hb=HEAD;hpb=2a014774e29e324bc5b5f26143d0384351738ca1 diff --git a/src/disassembler/Instruction.hxx b/src/disassembler/Instruction.hxx index afb5193..0e92dd5 100644 --- a/src/disassembler/Instruction.hxx +++ b/src/disassembler/Instruction.hxx @@ -1,6 +1,29 @@ +#ifndef INCLUDE__Instruction_hxx_ +#define INCLUDE__Instruction_hxx_ +#include +#include +#include + +class Comment; 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;} + std::vector& comments() {return _comments;} private: + uint64_t address; + std::string text; + std::vector bytes; + std::string reference; + std::vector _comments; }; + +#endif /* INCLUDE__Instruction_hxx_ */