X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fcore%2FComment.cxx;fp=src%2Fcore%2FComment.cxx;h=d6fedfbf00331b7c026342e693d9219fe6e21b4f;hp=0cb804c84ab35dc3397ddbc836014fe2a3f90574;hb=d1b23c7274d6430ccc70bf2baf616437db9f5706;hpb=1ef802ee9a14e6274b3e60db873965b794f49abe diff --git a/src/core/Comment.cxx b/src/core/Comment.cxx index 0cb804c..d6fedfb 100644 --- a/src/core/Comment.cxx +++ b/src/core/Comment.cxx @@ -1,5 +1,7 @@ #include "Comment.hxx" #include "Function.hxx" +#include "InformationManager.hxx" +#include "events/ChangeCommentEvent.hxx" Comment::Comment(uint64_t address, InformationManager* manager) : address(address) @@ -12,9 +14,15 @@ Comment::Comment(uint64_t address, Function* location, InformationManager* manag , manager(manager) {} void Comment::setText(const std::string& text) { + ChangeCommentEvent event(address, location, this); this->text = text; + manager->dispatch(&event); } uint64_t Comment::getAddress() { return address; } + +Function* Comment::getLocation() { + return location; +}