diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-02-01 10:12:54 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-02-01 10:12:54 (GMT) |
commit | 0c847f961a99d8e8012beecad27cf4318df1ff88 (patch) | |
tree | e73689b844184f272267ae54ac27a6e826410478 /plugins/pyoida/pyoida.c | |
parent | 14e82ed268cb78d62bbba93357fede5ece5c4f7d (diff) |
Provided a debug module for Python plugins using the PyGObject API.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@232 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'plugins/pyoida/pyoida.c')
-rw-r--r-- | plugins/pyoida/pyoida.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/pyoida/pyoida.c b/plugins/pyoida/pyoida.c index 1622512..d3b37e5 100644 --- a/plugins/pyoida/pyoida.c +++ b/plugins/pyoida/pyoida.c @@ -2,7 +2,7 @@ /* OpenIDA - Outil d'analyse de fichiers binaires * pyoida.c - plugin permettant des extensions en Python * - * Copyright (C) 2009-2011 Cyrille Bagard + * Copyright (C) 2009-2012 Cyrille Bagard * * This file is part of OpenIDA. * @@ -29,10 +29,12 @@ #include <Python.h> +#include <pygobject.h> #include "analysis/module.h" #include "arch/module.h" +#include "debug/module.h" #include "format/module.h" /* @@ -250,6 +252,8 @@ initpyoida(void) { PyObject *module; + pygobject_init(-1, -1, -1); + printf("Passage 2\n"); module = Py_InitModule("pyoida", SpamMethods); @@ -258,6 +262,7 @@ initpyoida(void) //add_analysis_roptions_to_python_module(module); add_analysis_module_to_python_module(module); add_arch_module_to_python_module(module); + add_debug_module_to_python_module(module); add_format_module_to_python_module(module); add_log_to_python_module(module); |