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);
}
#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;
};