#include <quazip/quazip.h>
#include <quazip/quazipfile.h>
+InformationManager::InformationManager()
+ : logger(log4cxx::Logger::getLogger("InformationManager"))
+{}
+
InformationManager::~InformationManager() {
for (auto b : blocks)
delete b.second;
}
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));
#ifndef INCLUDE__InformationManager_hxx
#define INCLUDE__InformationManager_hxx
+#include <log4cxx/logger.h>
#include <boost/signals2.hpp>
#include <functional>
#include <string>
std::unique_ptr<Disassembler> disassembler;
std::map<uint64_t, Function*> functions;
std::map<uint64_t, BasicBlock*> blocks;
+
+ log4cxx::LoggerPtr logger;
};
#endif /* INCLUDE__InformationManager_hxx */