summaryrefslogtreecommitdiff
path: root/src/format/java/java.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-02-03 23:21:49 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-02-03 23:21:49 (GMT)
commit425860b441b21e4aca7bf2473be26b0fe1e756e2 (patch)
tree341a0fc8b370d76566f3e332c344ffae5c065916 /src/format/java/java.c
parent5511e355e7810f06bd610b79bcc94402c88d7ec9 (diff)
Removed all references to binary parts (GBinPart) and updated the code.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@465 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/java/java.c')
-rwxr-xr-xsrc/format/java/java.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/format/java/java.c b/src/format/java/java.c
index 3235711..16c9fb7 100755
--- a/src/format/java/java.c
+++ b/src/format/java/java.c
@@ -48,9 +48,6 @@ static void g_java_format_init(GJavaFormat *);
/* Indique le type d'architecture visée par le format. */
static FormatTargetMachine g_java_format_get_target_machine(const GJavaFormat *);
-/* Fournit les références aux zones binaires à analyser. */
-static GBinPart **g_java_format_get_parts(const GJavaFormat *, size_t *);
-
/* Fournit la position correspondant à une adresse virtuelle. */
static bool g_java_format_translate_address_into_offset(const GJavaFormat *, vmpa_t, off_t *);
@@ -128,7 +125,6 @@ static void g_java_format_init(GJavaFormat *format)
exe_format = G_EXE_FORMAT(format);
exe_format->get_machine = (get_target_machine_fc)g_java_format_get_target_machine;
- exe_format->get_parts = (get_parts_fc)g_java_format_get_parts;
exe_format->translate_addr = (translate_addr_fc)g_java_format_translate_address_into_offset;
exe_format->translate_off = (translate_off_fc)g_java_format_translate_offset_into_address;
@@ -217,52 +213,6 @@ static FormatTargetMachine g_java_format_get_target_machine(const GJavaFormat *f
/******************************************************************************
* *
-* Paramètres : format = informations chargées à consulter. *
-* count = quantité de zones listées. [OUT] *
-* *
-* Description : Fournit les références aux zones binaires à analyser. *
-* *
-* Retour : Zones binaires à analyser. *
-* *
-* Remarques : - *
-* *
-******************************************************************************/
-
-static GBinPart **g_java_format_get_parts(const GJavaFormat *format, size_t *count)
-{
- GBinPart **result; /* Tableau à retourner */
- uint16_t i; /* Boucle de parcours */
- off_t offset; /* Position physique */
- off_t size; /* Taille de la partie */
- GBinPart *part; /* Partie à intégrer à la liste*/
-
- result = NULL;
- *count = 0;
- /*
- for (i = 0; i < format->header.methods_count; i++)
- if (find_java_method_code_part(&format->header.methods[i], &offset, &size))
- {
- part = g_binary_part_new();
-
- g_binary_part_set_name(part, "name");
-
- g_binary_part_set_values(part, offset, size, offset);
-
- result = (GBinPart **)realloc(result, ++(*count) * sizeof(GBinPart *));
- result[*count - 1] = part;
-
- }
-
- }
- */
-
- return result;
-
-}
-
-
-/******************************************************************************
-* *
* Paramètres : format = description de l'exécutable à consulter. *
* addr = adresse virtuelle à retrouver. *
* pos = position correspondante. [OUT] *