Reoganize Function/BasicBlock creation
[frida/frida.git] / src / core / Function.cxx
1 #include "Function.hxx"
2 #include "core/events/RenameFunctionEvent.hxx"
3 #include "InformationManager.hxx"
4
5 #include <iostream>
6
7 Function::Function(uint64_t start_address, InformationManager* manager)
8 : start_address(start_address)
9 , manager(manager) {}
10
11
12 void Function::setName(const std::string& new_name) {
13 name = new_name;
14 RenameFunctionEvent event(new_name, start_address);
15 manager->dispatch(&event);
16 }
17