diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-11-18 18:46:08 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-11-18 18:46:08 (GMT) |
commit | 0f914ad3fdcc1ebac5789b55b9677e7868016e21 (patch) | |
tree | bafc46ac54d02ff35310c3433615e6b74010a920 /plugins | |
parent | 23bc425f9c35c31a80d65d824452c8728614a206 (diff) |
Allowed to attach debug information to formats.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/dex/format.c | 2 | ||||
-rw-r--r-- | plugins/elf/format.c | 2 | ||||
-rw-r--r-- | plugins/pychrysalide/plugin.c | 6 |
3 files changed, 3 insertions, 7 deletions
diff --git a/plugins/dex/format.c b/plugins/dex/format.c index b657fe6..5ae0ec8 100644 --- a/plugins/dex/format.c +++ b/plugins/dex/format.c @@ -407,7 +407,7 @@ static bool g_dex_format_analyze(GDexFormat *format, wgroup_id_t gid, GtkStatusS g_executable_format_setup_portions(exe, status); - if (!g_executable_format_complete_loading(exe, status)) + if (!g_executable_format_complete_loading(exe, gid, status)) goto gdfa_error; result = true; diff --git a/plugins/elf/format.c b/plugins/elf/format.c index 340c2c7..d6bdc5e 100644 --- a/plugins/elf/format.c +++ b/plugins/elf/format.c @@ -403,7 +403,7 @@ static bool g_elf_format_analyze(GElfFormat *format, wgroup_id_t gid, GtkStatusS if (!find_all_elf_strings(format, gid, status)) goto gefa_error; - if (!g_executable_format_complete_loading(exe, status)) + if (!g_executable_format_complete_loading(exe, gid, status)) goto gefa_error; result = true; diff --git a/plugins/pychrysalide/plugin.c b/plugins/pychrysalide/plugin.c index 34a0129..fb2044d 100644 --- a/plugins/pychrysalide/plugin.c +++ b/plugins/pychrysalide/plugin.c @@ -408,10 +408,6 @@ GPluginModule *g_python_plugin_new(const char *modname, const char *filename) switch (action) { - case PGA_FORMAT_LOADER_LAST: - /* TODO */ - break; - default: log_variadic_message(LMT_WARNING, _("Unknown action '0x%02x' in plugin '%s'..."), @@ -757,7 +753,7 @@ static bool py_plugin_module_define_constants(PyTypeObject *obj_type) result &= PyDict_AddIntMacro(obj_type, PGA_FORMAT_ANALYSIS_STARTED); result &= PyDict_AddIntMacro(obj_type, PGA_FORMAT_PRELOAD); - result &= PyDict_AddIntMacro(obj_type, PGA_FORMAT_LOADER_LAST); + result &= PyDict_AddIntMacro(obj_type, PGA_FORMAT_ATTACH_DEBUG); result &= PyDict_AddIntMacro(obj_type, PGA_FORMAT_ANALYSIS_ENDED); result &= PyDict_AddIntMacro(obj_type, PGA_FORMAT_POST_ANALYSIS_STARTED); result &= PyDict_AddIntMacro(obj_type, PGA_FORMAT_POST_ANALYSIS_ENDED); |