summaryrefslogtreecommitdiff
path: root/src/format/dex
diff options
context:
space:
mode:
Diffstat (limited to 'src/format/dex')
-rw-r--r--src/format/dex/class.c12
-rw-r--r--src/format/dex/method.c6
2 files changed, 11 insertions, 7 deletions
diff --git a/src/format/dex/class.c b/src/format/dex/class.c
index 710b023..168d45d 100644
--- a/src/format/dex/class.c
+++ b/src/format/dex/class.c
@@ -2,7 +2,7 @@
/* OpenIDA - Outil d'analyse de fichiers binaires
* class.c - manipulation des classes du format DEX
*
- * Copyright (C) 2010 Cyrille Bagard
+ * Copyright (C) 2010-2012 Cyrille Bagard
*
* This file is part of OpenIDA.
*
@@ -153,8 +153,8 @@ static GDexClass *g_dex_class_new(const GDexFormat *format, off_t offset)
- printf(" Classe :: d meth count == 0x%lld\n", data.direct_methods_size);
- printf(" Classe :: v meth count == 0x%lld\n", data.virtual_methods_size);
+ //printf(" Classe :: d meth count == 0x%lld\n", data.direct_methods_size);
+ //printf(" Classe :: v meth count == 0x%lld\n", data.virtual_methods_size);
@@ -228,9 +228,11 @@ static void g_dex_class_register_method(const GDexClass *class, GBinFormat *form
routine = g_dex_method_get_routine(class->direct_methods[i]);
g_binary_format_add_routine(format, routine);
+ /*
printf("routine @ 0x%08llx :: '%s'\n",
g_binary_routine_get_address(routine),
g_binary_routine_get_name(routine));
+ */
}
@@ -239,9 +241,11 @@ static void g_dex_class_register_method(const GDexClass *class, GBinFormat *form
routine = g_dex_method_get_routine(class->virtual_methods[i]);
g_binary_format_add_routine(format, routine);
+ /*
printf("routine @ 0x%08llx :: '%s'\n",
g_binary_routine_get_address(routine),
g_binary_routine_get_name(routine));
+ */
}
@@ -355,7 +359,7 @@ GBufferLine *line, GLangOutput *output)
//g_buffer_line_insert_text(line, BLC_ASSEMBLY, "{", 3, RTT_SIGNS);
- printf("Output :: %s\n", _g_openida_type_to_string(type, true));
+ //printf("Output :: %s\n", _g_openida_type_to_string(type, true));
diff --git a/src/format/dex/method.c b/src/format/dex/method.c
index b9023d8..95f121a 100644
--- a/src/format/dex/method.c
+++ b/src/format/dex/method.c
@@ -2,7 +2,7 @@
/* OpenIDA - Outil d'analyse de fichiers binaires
* method.c - manipulation des methodes du format DEX
*
- * Copyright (C) 2010 Cyrille Bagard
+ * Copyright (C) 2010-2012 Cyrille Bagard
*
* This file is part of OpenIDA.
*
@@ -151,13 +151,13 @@ GDexMethod *g_dex_method_new(const GDexFormat *format, const encoded_method *see
//printf(" code size :: %d\n", item.insns_size);
- printf(" method idx :: %lld\n", *last);
+ //printf(" method idx :: %lld\n", *last);
result->offset = seed->code_off + 4 * sizeof(uint16_t) + 2 *sizeof(uint32_t);/* TODO : faire plus propre ! */
- printf(" method off :: 0x%08x\n", result->offset);
+ //printf(" method off :: 0x%08x\n", result->offset);
g_binary_routine_set_address(routine, result->offset);