]> git.siccegge.de Git - frida/frida.git/blob - src/disassembler/Instruction.hxx
add logging to the Guile module
[frida/frida.git] / src / disassembler / Instruction.hxx
1 #ifndef INCLUDE__Instruction_hxx_
2 #define INCLUDE__Instruction_hxx_
3
4 #include <vector>
5 #include <cstdint>
6 #include <string>
7
8 class Comment;
9
10 class Instruction {
11 public:
12 Instruction(uint64_t address, const std::string& text, const std::vector<uint8_t>& bytes, const std::string& reference)
13 : address(address), text(text), bytes(bytes), reference(reference) {}
14 uint64_t getAddress() const {return address;}
15 const std::string& getText() const {return text;}
16 const std::vector<uint8_t>& getBytes() const {return bytes;}
17 const std::string& getReference() const {return reference;}
18 std::vector<Comment*>& comments() {return _comments;}
19 private:
20 uint64_t address;
21 std::string text;
22 std::vector<uint8_t> bytes;
23 std::string reference;
24 std::vector<Comment*> _comments;
25 };
26
27 #endif /* INCLUDE__Instruction_hxx_ */