]> git.siccegge.de Git - frida/frida.git/blobdiff - src/core/InformationManager.cxx
Add logger for InformationManager
[frida/frida.git] / src / core / InformationManager.cxx
index 3eebc3422300cfde2f68323192d7f20b2a46f203..1ea4ba0cb0357f7a12235d8af3adb17592659043 100644 (file)
@@ -8,6 +8,10 @@
 #include <quazip/quazip.h>
 #include <quazip/quazipfile.h>
 
+InformationManager::InformationManager()
+       : logger(log4cxx::Logger::getLogger("InformationManager"))
+{}
+
 InformationManager::~InformationManager() {
        for (auto b : blocks)
                delete b.second;
@@ -87,6 +91,7 @@ Comment* InformationManager::newLocalComment(uint64_t address, Function* f) {
 }
 
 void InformationManager::finishFunction(Function* fun) {
+       LOG4CXX_DEBUG(logger, "Finishing function " << fun->getName());
        for (auto b : fun->blocks()) {
                BasicBlock* bl = b.second;
                blocks.insert(std::make_pair(bl->getStartAddress(), bl));