]> git.siccegge.de Git - frida/frida.git/blobdiff - src/disassembler/Instruction.hxx
Implement InformationManager / Comment and ChangeCommentEvent
[frida/frida.git] / src / disassembler / Instruction.hxx
index e79b24f38408ded9dfe060699914014a6810d3fb..5a74e22afe1bcfaf9779e9311fd74b28b3dad639 100644 (file)
@@ -5,6 +5,8 @@
 #include <cstdint>
 #include <string>
 
+class Comment;
+
 class Instruction {
 public:
        Instruction(uint64_t address, const std::string& text, const std::vector<uint8_t>& bytes, const std::string& reference)
@@ -13,11 +15,13 @@ public:
        const std::string& getText() const {return text;}
        const std::vector<uint8_t>& getBytes() const {return bytes;}
        const std::string& getReference() const {return reference;}
+       std::vector<Comment*>& comments() {return _comments;}
 private:
        uint64_t address;
        std::string text;
        std::vector<uint8_t> bytes;
        std::string reference;
+       std::vector<Comment*> _comments;
 };
 
 #endif /* INCLUDE__Instruction_hxx_ */