]> git.siccegge.de Git - frida/frida.git/commitdiff
Include pointer to changed function in RenameFunctionEvent
authorChristoph Egger <Christoph.Egger@fau.de>
Thu, 19 Mar 2015 17:01:28 +0000 (18:01 +0100)
committerChristoph Egger <Christoph.Egger@fau.de>
Thu, 19 Mar 2015 17:02:10 +0000 (18:02 +0100)
src/core/Function.cxx
src/core/events/RenameFunctionEvent.hxx

index e31bce4a88481ea8952eb16dd384bf637cabfa92..1560e2af98ec9aa04860afbf4a7938763ca31e52 100644 (file)
@@ -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);
 }
 
index a8c78d585948572a451d87fc013c38698061a33e..134794137dbb8ef035926f865645f2f030f9b55d 100644 (file)
@@ -2,13 +2,17 @@
 #define INCLUDE__RenameFunctionEvent_hxx_
 
 #include <string>
+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;
 };