diff options
Diffstat (limited to 'plugins/pychrysa')
-rw-r--r-- | plugins/pychrysa/debug/debugger.c | 2 | ||||
-rw-r--r-- | plugins/pychrysa/debug/debugger.h | 4 | ||||
-rw-r--r-- | plugins/pychrysa/debug/module.c | 2 | ||||
-rw-r--r-- | plugins/pychrysa/plugin.c | 17 |
4 files changed, 14 insertions, 11 deletions
diff --git a/plugins/pychrysa/debug/debugger.c b/plugins/pychrysa/debug/debugger.c index c829385..dde6639 100644 --- a/plugins/pychrysa/debug/debugger.c +++ b/plugins/pychrysa/debug/debugger.c @@ -25,6 +25,7 @@ #include "debugger.h" +#if 0 #include <malloc.h> #include <pygobject.h> @@ -276,3 +277,4 @@ bool register_python_binary_debugger(PyObject *module) return (ret == 0); } +#endif diff --git a/plugins/pychrysa/debug/debugger.h b/plugins/pychrysa/debug/debugger.h index 378c675..1f7098a 100644 --- a/plugins/pychrysa/debug/debugger.h +++ b/plugins/pychrysa/debug/debugger.h @@ -29,7 +29,7 @@ #include <Python.h> #include <stdbool.h> - +#if 0 #include <debug/debugger.h> @@ -39,7 +39,7 @@ PyObject *py_binary_debugger_from_c(GBinaryDebugger *debugger); /* Ajoute l'objet 'pychrysalide.debug.BinaryDebugger' au module. */ bool register_python_binary_debugger(PyObject *); - +#endif #endif /* _PLUGINS_PYOIDA_DEBUG_DEBUGGER_H */ diff --git a/plugins/pychrysa/debug/module.c b/plugins/pychrysa/debug/module.c index 302ca38..9241ee0 100644 --- a/plugins/pychrysa/debug/module.c +++ b/plugins/pychrysa/debug/module.c @@ -59,7 +59,7 @@ bool add_debug_module_to_python_module(PyObject *super) result = (ret == 0); - result &= register_python_binary_debugger(module); + //result &= register_python_binary_debugger(module); return result; diff --git a/plugins/pychrysa/plugin.c b/plugins/pychrysa/plugin.c index 9a93642..60a9ad7 100644 --- a/plugins/pychrysa/plugin.c +++ b/plugins/pychrysa/plugin.c @@ -36,7 +36,7 @@ #include "helpers.h" #include "analysis/binary.h" -#include "debug/debugger.h" +//#include "debug/debugger.h" @@ -85,7 +85,7 @@ static bool g_python_plugin_execute_on_binary(GPythonPlugin *, GLoadedBinary *, /* Exécute une action relative à un débogueur. */ -static bool g_python_plugin_handle_debugger(const GPythonPlugin *, GBinaryDebugger *, PluginAction); +//static bool g_python_plugin_handle_debugger(const GPythonPlugin *, GBinaryDebugger *, PluginAction); @@ -126,7 +126,7 @@ static PyObject *pychrysa_plugin_is_matching(PyObject *, PyObject *); /* Exécute une action relative à un débogueur. */ -static PyObject *pychrysa_plugin_handle_debugger(PyObject *, PyObject *); +//static PyObject *pychrysa_plugin_handle_debugger(PyObject *, PyObject *); @@ -184,7 +184,7 @@ static void g_python_plugin_init(GPythonPlugin *plugin) plugin_parent = G_PLUGIN_MODULE(plugin); plugin_parent->exec_on_bin = (execute_action_on_binary_fc)g_python_plugin_execute_on_binary; - plugin_parent->handle_debugger = (execute_on_debugger_fc)g_python_plugin_handle_debugger; + //plugin_parent->handle_debugger = (execute_on_debugger_fc)g_python_plugin_handle_debugger; } @@ -241,9 +241,9 @@ GPluginModule *g_python_plugin_new(const char *modname, const char *filename) result = g_object_new(G_TYPE_PYTHON_PLUGIN, NULL); - G_PLUGIN_MODULE(result)->name = strdup(modname); - G_PLUGIN_MODULE(result)->name = stradd(G_PLUGIN_MODULE(result)->name, ".py"); - G_PLUGIN_MODULE(result)->filename = strdup(G_PLUGIN_MODULE(result)->name); + //G_PLUGIN_MODULE(result)->name = strdup(modname); + //G_PLUGIN_MODULE(result)->name = stradd(G_PLUGIN_MODULE(result)->name, ".py"); + //G_PLUGIN_MODULE(result)->filename = strdup(G_PLUGIN_MODULE(result)->name); G_PLUGIN_MODULE(result)->init = (init_plugin_fc)g_python_plugin_do_init; G_PLUGIN_MODULE(result)->get_action = (get_plugin_action_fc)g_python_plugin_get_action; @@ -484,7 +484,7 @@ static bool g_python_plugin_execute_on_binary(GPythonPlugin *plugin, GLoadedBina - +#if 0 /****************************************************************************** * * * Paramètres : plugin = greffon à consulter. * @@ -520,6 +520,7 @@ static bool g_python_plugin_handle_debugger(const GPythonPlugin *plugin, GBinary return result; } +#endif |