From: Christoph Egger Date: Thu, 19 Mar 2015 17:01:28 +0000 (+0100) Subject: Include pointer to changed function in RenameFunctionEvent X-Git-Tag: v0.1~31 X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=293c2d1bb5fee3008630ab3fe6d0ac30d21b1d95;p=frida%2Ffrida.git Include pointer to changed function in RenameFunctionEvent --- diff --git a/src/core/Function.cxx b/src/core/Function.cxx index e31bce4..1560e2a 100644 --- a/src/core/Function.cxx +++ b/src/core/Function.cxx @@ -12,7 +12,7 @@ Function::Function(uint64_t start_address, bool dynamic, InformationManager* man void Function::setName(const std::string& new_name) { name = new_name; - RenameFunctionEvent event(new_name, start_address); + RenameFunctionEvent event(new_name, this, start_address); manager->dispatch(&event); } diff --git a/src/core/events/RenameFunctionEvent.hxx b/src/core/events/RenameFunctionEvent.hxx index a8c78d5..1347941 100644 --- a/src/core/events/RenameFunctionEvent.hxx +++ b/src/core/events/RenameFunctionEvent.hxx @@ -2,13 +2,17 @@ #define INCLUDE__RenameFunctionEvent_hxx_ #include +class Function; class RenameFunctionEvent { public: - RenameFunctionEvent(const std::string& name, uint64_t address) - : new_name(name), address(address) {} + RenameFunctionEvent(const std::string& name, + Function* function, + uint64_t address) + : new_name(name), function(function), address(address) {} std::string new_name; + Function* function; uint64_t address; };