]> git.siccegge.de Git - frida/frida.git/blobdiff - src/core/Comment.cxx
Add new files missing from previous few commits
[frida/frida.git] / src / core / Comment.cxx
diff --git a/src/core/Comment.cxx b/src/core/Comment.cxx
new file mode 100644 (file)
index 0000000..0cb804c
--- /dev/null
@@ -0,0 +1,20 @@
+#include "Comment.hxx"
+#include "Function.hxx"
+
+Comment::Comment(uint64_t address, InformationManager* manager)
+       : address(address)
+       , location(NULL)
+       , manager(manager) {}
+
+Comment::Comment(uint64_t address, Function* location, InformationManager* manager)
+       : address(address)
+       , location(location)
+       , manager(manager) {}
+
+void Comment::setText(const std::string& text) {
+       this->text = text;
+}
+
+uint64_t Comment::getAddress() {
+       return address;
+}