diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2010-01-02 01:48:30 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2010-01-02 01:48:30 (GMT) |
commit | 2d95ce74200c8cb7c328535235a8c8e74686794e (patch) | |
tree | 6e006e9b43b022a40ba53c58ed1f39be5327f880 /src/format/executable.c | |
parent | 7468875c1022337efbff78069d715672ae083150 (diff) |
Provided ways to load, save and edit some binary parts selection.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@141 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/executable.c')
-rw-r--r-- | src/format/executable.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/format/executable.c b/src/format/executable.c index 4af587f..76efaa1 100644 --- a/src/format/executable.c +++ b/src/format/executable.c @@ -147,6 +147,27 @@ GBinPart **g_exe_format_get_parts(const GExeFormat *format, size_t *count) /****************************************************************************** * * * Paramètres : format = description de l'exécutable à consulter. * +* addr = adresse virtuelle à retrouver. * +* pos = position correspondante. [OUT] * +* * +* Description : Fournit la position correspondant à une adresse virtuelle. * +* * +* Retour : Bilan de l'opération. * +* * +* Remarques : - * +* * +******************************************************************************/ + +bool g_exe_format_translate_address_into_offset(const GExeFormat *format, vmpa_t addr, off_t *pos) +{ + return format->translate_addr(format, addr, pos); + +} + + +/****************************************************************************** +* * +* Paramètres : format = description de l'exécutable à consulter. * * pos = position dans le flux binaire à retrouver. * * addr = adresse virtuelle correspondante. [OUT] * * * @@ -160,6 +181,6 @@ GBinPart **g_exe_format_get_parts(const GExeFormat *format, size_t *count) bool g_exe_format_translate_offset_into_address(const GExeFormat *format, off_t pos, vmpa_t *addr) { - return format->translate(format, pos, addr); + return format->translate_off(format, pos, addr); } |