summaryrefslogtreecommitdiff
path: root/plugins/dalvik
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/dalvik')
-rw-r--r--plugins/dalvik/instruction.c33
1 files changed, 30 insertions, 3 deletions
diff --git a/plugins/dalvik/instruction.c b/plugins/dalvik/instruction.c
index aafd34e..7105dc9 100644
--- a/plugins/dalvik/instruction.c
+++ b/plugins/dalvik/instruction.c
@@ -52,7 +52,10 @@ static void g_dalvik_instruction_finalize(GDalvikInstruction *);
static const char *g_dalvik_instruction_get_encoding(const GDalvikInstruction *);
/* Fournit le nom humain de l'instruction manipulée. */
-static const char *dalvik_instruction_get_keyword(const GDalvikInstruction *, AsmSyntax);
+static const char *g_dalvik_instruction_get_keyword(const GDalvikInstruction *, AsmSyntax);
+
+/* Construit un petit résumé concis de l'instruction. */
+static char *g_dalvik_instruction_build_tooltip(const GDalvikInstruction *);
@@ -86,7 +89,8 @@ static void g_dalvik_instruction_class_init(GDalvikInstructionClass *klass)
instr = G_ARCH_INSTRUCTION_CLASS(klass);
instr->get_encoding = (get_instruction_encoding_fc)g_dalvik_instruction_get_encoding;
- instr->get_keyword = (get_instruction_keyword_fc)dalvik_instruction_get_keyword;
+ instr->get_keyword = (get_instruction_keyword_fc)g_dalvik_instruction_get_keyword;
+ instr->build_tooltip = (build_instruction_tooltip_fc)g_dalvik_instruction_build_tooltip;
}
@@ -208,7 +212,7 @@ static const char *g_dalvik_instruction_get_encoding(const GDalvikInstruction *i
* *
******************************************************************************/
-static const char *dalvik_instruction_get_keyword(const GDalvikInstruction *instr, AsmSyntax syntax)
+static const char *g_dalvik_instruction_get_keyword(const GDalvikInstruction *instr, AsmSyntax syntax)
{
return instr->keyword;
@@ -219,6 +223,29 @@ static const char *dalvik_instruction_get_keyword(const GDalvikInstruction *inst
* *
* Paramètres : instr = instruction Dalvik à consulter. *
* *
+* Description : Construit un petit résumé concis de l'instruction. *
+* *
+* Retour : Chaîne de caractères à libérer après usage ou NULL. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+static char *g_dalvik_instruction_build_tooltip(const GDalvikInstruction *instr)
+{
+ char *result; /* Description à retourner */
+
+ result = NULL;
+
+ return result;
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : instr = instruction Dalvik à consulter. *
+* *
* Description : Indique l'opcode associé à une instruction Dalvik. *
* *
* Retour : Identifiant de l'instruction en place. *