X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fdisassembler%2FInstruction.hxx;h=0e92dd5b5a4de929a8b36b86fc79134ac3ec9f60;hp=e79b24f38408ded9dfe060699914014a6810d3fb;hb=HEAD;hpb=4443ad3e38327c776dcc68538591456d37c9ed6f diff --git a/src/disassembler/Instruction.hxx b/src/disassembler/Instruction.hxx index e79b24f..0e92dd5 100644 --- a/src/disassembler/Instruction.hxx +++ b/src/disassembler/Instruction.hxx @@ -5,19 +5,25 @@ #include #include +class Comment; + class Instruction { public: - Instruction(uint64_t address, const std::string& text, const std::vector& bytes, const std::string& reference) + 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_ */