]> git.siccegge.de Git - frida/frida.git/commitdiff
Register types for cross-thread signals
authorChristoph Egger <christoph@christoph-egger.org>
Tue, 2 Jun 2015 21:12:16 +0000 (23:12 +0200)
committerChristoph Egger <christoph@christoph-egger.org>
Tue, 2 Jun 2015 21:12:16 +0000 (23:12 +0200)
src/core/InformationManager.cxx
src/core/events/NewFunctionEvent.hxx
src/main.cxx

index b947a58933006373ff37968702a3e5e18d043769..4a48bae3c7070b12f0dbcd7551d28f9e88081fd0 100644 (file)
@@ -19,6 +19,7 @@ InformationManager::InformationManager()
        : logger(log4cxx::Logger::getLogger("core.InformationManager"))
 {
        current_information_manager = this;
+       qRegisterMetaType<NewFunctionEvent>("NewFunctionEvent");
 
        QPluginLoader* loader = new QPluginLoader("libguilePlugin", NULL);
        if (!loader->load())
index febcd1dab44bcd5075844deb471fd63eacf73399..178ddb596cfa566f609c81ded206d91f8cd8cc4c 100644 (file)
@@ -1,10 +1,14 @@
 #ifndef INCLUDE__NewFunctionEvent_hxx_
 #define INCLUDE__NewFunctionEvent_hxx_
 
+#include <QMetaType>
+
 class Function;
 
 class NewFunctionEvent {
 public:
+       NewFunctionEvent()
+               : address(0), function(NULL) {}
        NewFunctionEvent(uint64_t address, Function* function)
                : address(address), function(function) {}
 
@@ -12,4 +16,6 @@ public:
        Function* function;
 };
 
+Q_DECLARE_METATYPE(NewFunctionEvent)
+
 #endif /* INCLUDE__NewFunctionEvent_hxx_ */
index 9e25c20597b8f9df0ae5cdb81b9e063d3ae6341d..2e236def2d97151b3fb9b90069ffdf68db0431b6 100644 (file)
@@ -38,6 +38,7 @@ int main(int argc, char** argv)
        QApplication::setApplicationVersion("0.2+");
        QApplication::addLibraryPath(CONFIG_LIBDIR "/frida/plugins/Interpreter");
        qRegisterMetaType<QVector<int> >("QVector<int>");
+       qRegisterMetaType<uint64_t>("uint64_t");
 #ifdef ARGPARSE
        parser.addHelpOption();
        parser.addVersionOption();