X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fcore%2FInformationManager.cxx;h=500f79f1406f661c2a4ac53747fa053898ff0db6;hp=b947a58933006373ff37968702a3e5e18d043769;hb=f9d8bd4a0312a92a1ec3493e83996c0a99d8d1bf;hpb=4979a0a839390713671f3f9756dc6820501d4ad4 diff --git a/src/core/InformationManager.cxx b/src/core/InformationManager.cxx index b947a58..500f79f 100644 --- a/src/core/InformationManager.cxx +++ b/src/core/InformationManager.cxx @@ -4,7 +4,6 @@ #include "core/Function.hxx" #include "core/BasicBlock.hxx" #include "core/Comment.hxx" -#include "core/events/NewFunctionEvent.hxx" #include "core/events/ChangeCommentEvent.hxx" #include "qt.hxx" @@ -19,6 +18,7 @@ InformationManager::InformationManager() : logger(log4cxx::Logger::getLogger("core.InformationManager")) { current_information_manager = this; + qRegisterMetaType("NewFunctionEvent"); QPluginLoader* loader = new QPluginLoader("libguilePlugin", NULL); if (!loader->load()) @@ -271,7 +271,7 @@ void InformationManager::finishFunction(Function* fun) { blocks.insert(std::make_pair(bl->getStartAddress(), bl)); } NewFunctionEvent event(fun->getStartAddress(), fun); - emit newFunctionEvent(&event); + emit newFunctionEvent(event); } void InformationManager::finishBasicBlock(BasicBlock*) {