summaryrefslogtreecommitdiff
path: root/src/analysis/routine.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-07-23 19:07:29 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-07-23 19:07:29 (GMT)
commit8b35a66464636d0c46237af7490a6ca6866ecc4d (patch)
tree92199b36e3af00eb4c175a80c20b9b14511a6a45 /src/analysis/routine.c
parent8b2189a819c7a761cfdb97d9e3382ea963f225fb (diff)
Improved decompilation of Dalvik bytecode.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@252 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis/routine.c')
-rw-r--r--src/analysis/routine.c28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/analysis/routine.c b/src/analysis/routine.c
index 651b7c6..b4fc51f 100644
--- a/src/analysis/routine.c
+++ b/src/analysis/routine.c
@@ -140,6 +140,32 @@ GBinRoutine *g_binary_routine_new(void)
}
+
+/******************************************************************************
+* *
+* Paramètres : type = type mis en place par la future routine. *
+* *
+* Description : Crée une représentation de routine construisant une instance.*
+* *
+* Retour : Adresse de la structure mise en place. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+GBinRoutine *g_binary_routine_new_constructor(GOpenidaType *type)
+{
+ GBinRoutine *result; /* Structure à retourner */
+
+ result = g_object_new(G_TYPE_BIN_ROUTINE, NULL);
+
+ g_binary_routine_set_name(result, _g_openida_type_to_string(type, true));
+
+ return result;
+
+}
+
+
/******************************************************************************
* *
* Paramètres : routine = routine à effacer. *
@@ -896,7 +922,7 @@ void g_binary_routine_print_code(const GBinRoutine *routine, GLangOutput *lang,
len = 3;
}
- g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, name, len, RTT_RAW);
+ g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, name, len, RTT_COMMENT);