summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-07-19 20:00:40 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-07-19 20:00:40 (GMT)
commit12abead3f60d6f72c0d41672af87215dfc13c8fc (patch)
tree3fda90b6e1b439644a39730ae8935c74da1f2d44
parent79ae70be75b534c18fbfce38294f5ba7feef0e11 (diff)
Deleted all references to any asm syntax.
-rw-r--r--plugins/arm/v7/instruction.c7
-rw-r--r--plugins/arm/v7/operands/estate.c5
-rw-r--r--plugins/arm/v7/operands/iflags.c5
-rw-r--r--plugins/arm/v7/operands/it.c5
-rw-r--r--plugins/arm/v7/operands/limitation.c5
-rw-r--r--plugins/arm/v7/operands/maccess.c11
-rw-r--r--plugins/arm/v7/operands/offset.c7
-rw-r--r--plugins/arm/v7/operands/register.c7
-rw-r--r--plugins/arm/v7/operands/reglist.c7
-rw-r--r--plugins/arm/v7/operands/rotation.c7
-rw-r--r--plugins/arm/v7/operands/shift.c7
-rw-r--r--plugins/arm/v7/registers/banked.c9
-rw-r--r--plugins/arm/v7/registers/basic.c9
-rw-r--r--plugins/arm/v7/registers/coproc.c9
-rw-r--r--plugins/arm/v7/registers/simd.c9
-rw-r--r--plugins/arm/v7/registers/special.c9
-rw-r--r--plugins/dalvik/context.h3
-rw-r--r--plugins/dalvik/operands/args.c9
-rw-r--r--plugins/dalvik/operands/pool.c5
-rw-r--r--plugins/dalvik/pseudo/fill.c7
-rw-r--r--plugins/dalvik/pseudo/switch.c7
-rw-r--r--plugins/dalvik/register.c25
-rw-r--r--plugins/dalvik/v35/instruction.c7
-rw-r--r--plugins/fmtp/def.h1
-rw-r--r--plugins/lnxsyscalls/hops_armv7.c4
-rw-r--r--plugins/pychrysalide/arch/immediate.c18
-rw-r--r--plugins/pychrysalide/arch/instruction.c2
-rw-r--r--plugins/pychrysalide/arch/module.c4
-rw-r--r--plugins/stackvars/operand.c3
-rw-r--r--src/analysis/db/items/switcher.c2
-rw-r--r--src/analysis/roptions.c21
-rw-r--r--src/analysis/roptions.h3
-rw-r--r--src/arch/archbase.h11
-rw-r--r--src/arch/immediate.c28
-rw-r--r--src/arch/immediate.h2
-rw-r--r--src/arch/instruction-int.h3
-rw-r--r--src/arch/instruction.c20
-rw-r--r--src/arch/instruction.h2
-rw-r--r--src/arch/jvm/instruction.c5
-rw-r--r--src/arch/jvm/operand.c3
-rw-r--r--src/arch/operand-int.h2
-rw-r--r--src/arch/operand.c5
-rw-r--r--src/arch/operand.h2
-rw-r--r--src/arch/operands/register.c7
-rw-r--r--src/arch/raw.c18
-rw-r--r--src/arch/register-int.h2
-rw-r--r--src/arch/register.c9
-rw-r--r--src/arch/register.h3
-rw-r--r--src/arch/target.c5
-rw-r--r--src/arch/undefined.c16
-rw-r--r--src/debug/debugger.h1
-rw-r--r--src/glibext/gbufferline.h1
52 files changed, 136 insertions, 248 deletions
diff --git a/plugins/arm/v7/instruction.c b/plugins/arm/v7/instruction.c
index ee75efd..97adddd 100644
--- a/plugins/arm/v7/instruction.c
+++ b/plugins/arm/v7/instruction.c
@@ -76,7 +76,7 @@ static void g_armv7_instruction_finalize(GArmV7Instruction *);
static const char *g_armv7_instruction_get_encoding(const GArmV7Instruction *);
/* Fournit le nom humain de l'instruction manipulée. */
-static const char *g_armv7_instruction_get_keyword(const GArmV7Instruction *, AsmSyntax);
+static const char *g_armv7_instruction_get_keyword(const GArmV7Instruction *);
/* Complète un désassemblage accompli pour une instruction. */
static void g_armv7_instruction_call_hook(GArmV7Instruction *, InstrProcessHook, GArchProcessor *, GProcContext *, GExeFormat *);
@@ -281,8 +281,7 @@ void g_armv7_instruction_set_encoding(GArmV7Instruction *instr, const char *enco
/******************************************************************************
* *
-* Paramètres : instr = instruction d'assemblage à consulter. *
-* syntax = type de représentation demandée. *
+* Paramètres : instr = instruction d'assemblage à consulter. *
* *
* Description : Fournit le nom humain de l'instruction manipulée. *
* *
@@ -292,7 +291,7 @@ void g_armv7_instruction_set_encoding(GArmV7Instruction *instr, const char *enco
* *
******************************************************************************/
-static const char *g_armv7_instruction_get_keyword(const GArmV7Instruction *instr, AsmSyntax syntax)
+static const char *g_armv7_instruction_get_keyword(const GArmV7Instruction *instr)
{
const char *result; /* Désignation à retourner */
GArmInstruction *parent; /* Autre forme de l'instance */
diff --git a/plugins/arm/v7/operands/estate.c b/plugins/arm/v7/operands/estate.c
index 8460375..281f02b 100644
--- a/plugins/arm/v7/operands/estate.c
+++ b/plugins/arm/v7/operands/estate.c
@@ -63,7 +63,7 @@ static void g_armv7_endian_operand_finalize(GArmV7EndianOperand *);
static int g_armv7_endian_operand_compare(const GArmV7EndianOperand *, const GArmV7EndianOperand *);
/* Traduit un opérande en version humainement lisible. */
-static void g_armv7_endian_operand_print(const GArmV7EndianOperand *, GBufferLine *, AsmSyntax);
+static void g_armv7_endian_operand_print(const GArmV7EndianOperand *, GBufferLine *);
@@ -198,7 +198,6 @@ static int g_armv7_endian_operand_compare(const GArmV7EndianOperand *a, const GA
* *
* Paramètres : operand = opérande à traiter. *
* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
* *
* Description : Traduit un opérande en version humainement lisible. *
* *
@@ -208,7 +207,7 @@ static int g_armv7_endian_operand_compare(const GArmV7EndianOperand *a, const GA
* *
******************************************************************************/
-static void g_armv7_endian_operand_print(const GArmV7EndianOperand *operand, GBufferLine *line, AsmSyntax syntax)
+static void g_armv7_endian_operand_print(const GArmV7EndianOperand *operand, GBufferLine *line)
{
if (operand->big)
g_buffer_line_append_text(line, BLC_ASSEMBLY, "BE", 2, RTT_KEY_WORD, NULL);
diff --git a/plugins/arm/v7/operands/iflags.c b/plugins/arm/v7/operands/iflags.c
index e7b1b41..5c3e9ca 100644
--- a/plugins/arm/v7/operands/iflags.c
+++ b/plugins/arm/v7/operands/iflags.c
@@ -61,7 +61,7 @@ static void g_armv7_iflags_operand_dispose(GArmV7IFlagsOperand *);
static void g_armv7_iflags_operand_finalize(GArmV7IFlagsOperand *);
/* Traduit un opérande en version humainement lisible. */
-static void g_armv7_iflags_operand_print(const GArmV7IFlagsOperand *, GBufferLine *, AsmSyntax);
+static void g_armv7_iflags_operand_print(const GArmV7IFlagsOperand *, GBufferLine *);
@@ -175,7 +175,6 @@ static void g_armv7_iflags_operand_finalize(GArmV7IFlagsOperand *operand)
* *
* Paramètres : operand = opérande à traiter. *
* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
* *
* Description : Traduit un opérande en version humainement lisible. *
* *
@@ -185,7 +184,7 @@ static void g_armv7_iflags_operand_finalize(GArmV7IFlagsOperand *operand)
* *
******************************************************************************/
-static void g_armv7_iflags_operand_print(const GArmV7IFlagsOperand *operand, GBufferLine *line, AsmSyntax syntax)
+static void g_armv7_iflags_operand_print(const GArmV7IFlagsOperand *operand, GBufferLine *line)
{
if (operand->abort_bit)
g_buffer_line_append_text(line, BLC_ASSEMBLY, "A", 1, RTT_REGISTER, NULL);
diff --git a/plugins/arm/v7/operands/it.c b/plugins/arm/v7/operands/it.c
index f8232d1..52ae3c9 100644
--- a/plugins/arm/v7/operands/it.c
+++ b/plugins/arm/v7/operands/it.c
@@ -67,7 +67,7 @@ static void g_armv7_itcond_operand_finalize(GArmV7ITCondOperand *);
static int g_armv7_itcond_operand_compare(const GArmV7ITCondOperand *, const GArmV7ITCondOperand *);
/* Traduit un opérande en version humainement lisible. */
-static void g_armv7_itcond_operand_print(const GArmV7ITCondOperand *, GBufferLine *, AsmSyntax);
+static void g_armv7_itcond_operand_print(const GArmV7ITCondOperand *, GBufferLine *);
@@ -205,7 +205,6 @@ static int g_armv7_itcond_operand_compare(const GArmV7ITCondOperand *a, const GA
* *
* Paramètres : operand = opérande à traiter. *
* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
* *
* Description : Traduit un opérande en version humainement lisible. *
* *
@@ -215,7 +214,7 @@ static int g_armv7_itcond_operand_compare(const GArmV7ITCondOperand *a, const GA
* *
******************************************************************************/
-static void g_armv7_itcond_operand_print(const GArmV7ITCondOperand *operand, GBufferLine *line, AsmSyntax syntax)
+static void g_armv7_itcond_operand_print(const GArmV7ITCondOperand *operand, GBufferLine *line)
{
const char *kw; /* Mot clef à imprimer */
diff --git a/plugins/arm/v7/operands/limitation.c b/plugins/arm/v7/operands/limitation.c
index 6ed32fb..a89cbff 100644
--- a/plugins/arm/v7/operands/limitation.c
+++ b/plugins/arm/v7/operands/limitation.c
@@ -63,7 +63,7 @@ static void g_armv7_limitation_operand_finalize(GArmV7LimitationOperand *);
static int g_armv7_limitation_operand_compare(const GArmV7LimitationOperand *, const GArmV7LimitationOperand *);
/* Traduit un opérande en version humainement lisible. */
-static void g_armv7_limitation_operand_print(const GArmV7LimitationOperand *, GBufferLine *, AsmSyntax);
+static void g_armv7_limitation_operand_print(const GArmV7LimitationOperand *, GBufferLine *);
@@ -198,7 +198,6 @@ static int g_armv7_limitation_operand_compare(const GArmV7LimitationOperand *a,
* *
* Paramètres : operand = opérande à traiter. *
* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
* *
* Description : Traduit un opérande en version humainement lisible. *
* *
@@ -208,7 +207,7 @@ static int g_armv7_limitation_operand_compare(const GArmV7LimitationOperand *a,
* *
******************************************************************************/
-static void g_armv7_limitation_operand_print(const GArmV7LimitationOperand *operand, GBufferLine *line, AsmSyntax syntax)
+static void g_armv7_limitation_operand_print(const GArmV7LimitationOperand *operand, GBufferLine *line)
{
switch (operand->type)
{
diff --git a/plugins/arm/v7/operands/maccess.c b/plugins/arm/v7/operands/maccess.c
index f5307f7..392bae0 100644
--- a/plugins/arm/v7/operands/maccess.c
+++ b/plugins/arm/v7/operands/maccess.c
@@ -67,7 +67,7 @@ static void g_armv7_maccess_operand_finalize(GArmV7MAccessOperand *);
static int g_armv7_maccess_operand_compare(const GArmV7MAccessOperand *, const GArmV7MAccessOperand *);
/* Traduit un opérande en version humainement lisible. */
-static void g_armv7_maccess_operand_print(const GArmV7MAccessOperand *, GBufferLine *, AsmSyntax);
+static void g_armv7_maccess_operand_print(const GArmV7MAccessOperand *, GBufferLine *);
@@ -228,7 +228,6 @@ static int g_armv7_maccess_operand_compare(const GArmV7MAccessOperand *a, const
* *
* Paramètres : operand = opérande à traiter. *
* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
* *
* Description : Traduit un opérande en version humainement lisible. *
* *
@@ -238,11 +237,11 @@ static int g_armv7_maccess_operand_compare(const GArmV7MAccessOperand *a, const
* *
******************************************************************************/
-static void g_armv7_maccess_operand_print(const GArmV7MAccessOperand *operand, GBufferLine *line, AsmSyntax syntax)
+static void g_armv7_maccess_operand_print(const GArmV7MAccessOperand *operand, GBufferLine *line)
{
g_buffer_line_append_text(line, BLC_ASSEMBLY, "[", 1, RTT_HOOK, NULL);
- g_arch_operand_print(operand->base, line, syntax);
+ g_arch_operand_print(operand->base, line);
if (operand->post_indexed)
g_buffer_line_append_text(line, BLC_ASSEMBLY, "]", 1, RTT_HOOK, NULL);
@@ -252,7 +251,7 @@ static void g_armv7_maccess_operand_print(const GArmV7MAccessOperand *operand, G
g_buffer_line_append_text(line, BLC_ASSEMBLY, ",", 1, RTT_PUNCT, NULL);
g_buffer_line_append_text(line, BLC_ASSEMBLY, " ", 1, RTT_RAW, NULL);
- g_arch_operand_print(operand->offset, line, syntax);
+ g_arch_operand_print(operand->offset, line);
}
@@ -261,7 +260,7 @@ static void g_armv7_maccess_operand_print(const GArmV7MAccessOperand *operand, G
g_buffer_line_append_text(line, BLC_ASSEMBLY, ",", 1, RTT_PUNCT, NULL);
g_buffer_line_append_text(line, BLC_ASSEMBLY, " ", 1, RTT_RAW, NULL);
- g_arch_operand_print(operand->shift, line, syntax);
+ g_arch_operand_print(operand->shift, line);
}
diff --git a/plugins/arm/v7/operands/offset.c b/plugins/arm/v7/operands/offset.c
index ffa3fac..c78b3f1 100644
--- a/plugins/arm/v7/operands/offset.c
+++ b/plugins/arm/v7/operands/offset.c
@@ -64,7 +64,7 @@ static void g_armv7_offset_operand_finalize(GArmV7OffsetOperand *);
static int g_armv7_offset_operand_compare(const GArmV7OffsetOperand *, const GArmV7OffsetOperand *);
/* Traduit un opérande en version humainement lisible. */
-static void g_armv7_offset_operand_print(const GArmV7OffsetOperand *, GBufferLine *, AsmSyntax);
+static void g_armv7_offset_operand_print(const GArmV7OffsetOperand *, GBufferLine *);
@@ -208,7 +208,6 @@ static int g_armv7_offset_operand_compare(const GArmV7OffsetOperand *a, const GA
* *
* Paramètres : operand = opérande à traiter. *
* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
* *
* Description : Traduit un opérande en version humainement lisible. *
* *
@@ -218,12 +217,12 @@ static int g_armv7_offset_operand_compare(const GArmV7OffsetOperand *a, const GA
* *
******************************************************************************/
-static void g_armv7_offset_operand_print(const GArmV7OffsetOperand *operand, GBufferLine *line, AsmSyntax syntax)
+static void g_armv7_offset_operand_print(const GArmV7OffsetOperand *operand, GBufferLine *line)
{
if (!operand->positive)
g_buffer_line_append_text(line, BLC_ASSEMBLY, "-", 1, RTT_KEY_WORD, NULL);
- g_arch_operand_print(operand->value, line, syntax);
+ g_arch_operand_print(operand->value, line);
}
diff --git a/plugins/arm/v7/operands/register.c b/plugins/arm/v7/operands/register.c
index 80a3769..3699197 100644
--- a/plugins/arm/v7/operands/register.c
+++ b/plugins/arm/v7/operands/register.c
@@ -62,7 +62,7 @@ static void g_armv7_register_operand_dispose(GArmV7RegisterOperand *);
static void g_armv7_register_operand_finalize(GArmV7RegisterOperand *);
/* Traduit un opérande en version humainement lisible. */
-static void g_armv7_register_operand_print(const GArmV7RegisterOperand *, GBufferLine *, AsmSyntax);
+static void g_armv7_register_operand_print(const GArmV7RegisterOperand *, GBufferLine *);
@@ -174,7 +174,6 @@ static void g_armv7_register_operand_finalize(GArmV7RegisterOperand *operand)
* *
* Paramètres : operand = opérande à traiter. *
* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
* *
* Description : Traduit un opérande en version humainement lisible. *
* *
@@ -184,13 +183,13 @@ static void g_armv7_register_operand_finalize(GArmV7RegisterOperand *operand)
* *
******************************************************************************/
-static void g_armv7_register_operand_print(const GArmV7RegisterOperand *operand, GBufferLine *line, AsmSyntax syntax)
+static void g_armv7_register_operand_print(const GArmV7RegisterOperand *operand, GBufferLine *line)
{
GArchOperandClass *parent; /* Classe parente */
parent = G_ARCH_OPERAND_CLASS(g_armv7_register_operand_parent_class);
- parent->print(G_ARCH_OPERAND(operand), line, syntax);
+ parent->print(G_ARCH_OPERAND(operand), line);
if (operand->write_back)
g_buffer_line_append_text(line, BLC_ASSEMBLY, "!", 1, RTT_PUNCT, NULL);
diff --git a/plugins/arm/v7/operands/reglist.c b/plugins/arm/v7/operands/reglist.c
index 53b24a4..9b6aaa7 100644
--- a/plugins/arm/v7/operands/reglist.c
+++ b/plugins/arm/v7/operands/reglist.c
@@ -73,7 +73,7 @@ static void g_armv7_reglist_operand_finalize(GArmV7RegListOperand *);
static int g_armv7_reglist_operand_compare(const GArmV7RegListOperand *, const GArmV7RegListOperand *);
/* Traduit un opérande en version humainement lisible. */
-static void g_armv7_reglist_operand_print(const GArmV7RegListOperand *, GBufferLine *, AsmSyntax);
+static void g_armv7_reglist_operand_print(const GArmV7RegListOperand *, GBufferLine *);
@@ -240,7 +240,6 @@ static int g_armv7_reglist_operand_compare(const GArmV7RegListOperand *a, const
* *
* Paramètres : operand = opérande à traiter. *
* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
* *
* Description : Traduit un opérande en version humainement lisible. *
* *
@@ -250,7 +249,7 @@ static int g_armv7_reglist_operand_compare(const GArmV7RegListOperand *a, const
* *
******************************************************************************/
-static void g_armv7_reglist_operand_print(const GArmV7RegListOperand *operand, GBufferLine *line, AsmSyntax syntax)
+static void g_armv7_reglist_operand_print(const GArmV7RegListOperand *operand, GBufferLine *line)
{
size_t i; /* Boucle de parcours */
@@ -264,7 +263,7 @@ static void g_armv7_reglist_operand_print(const GArmV7RegListOperand *operand, G
g_buffer_line_append_text(line, BLC_ASSEMBLY, " ", 1, RTT_RAW, NULL);
}
- g_arch_register_print(G_ARCH_REGISTER(operand->registers[i]), line, syntax);
+ g_arch_register_print(G_ARCH_REGISTER(operand->registers[i]), line);
}
diff --git a/plugins/arm/v7/operands/rotation.c b/plugins/arm/v7/operands/rotation.c
index c091044..fcde0d9 100644
--- a/plugins/arm/v7/operands/rotation.c
+++ b/plugins/arm/v7/operands/rotation.c
@@ -62,7 +62,7 @@ static void g_armv7_rotation_operand_finalize(GArmV7RotationOperand *);
static int g_armv7_rotation_operand_compare(const GArmV7RotationOperand *, const GArmV7RotationOperand *);
/* Traduit un opérande en version humainement lisible. */
-static void g_armv7_rotation_operand_print(const GArmV7RotationOperand *, GBufferLine *, AsmSyntax);
+static void g_armv7_rotation_operand_print(const GArmV7RotationOperand *, GBufferLine *);
@@ -201,7 +201,6 @@ static int g_armv7_rotation_operand_compare(const GArmV7RotationOperand *a, cons
* *
* Paramètres : operand = opérande à traiter. *
* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
* *
* Description : Traduit un opérande en version humainement lisible. *
* *
@@ -211,13 +210,13 @@ static int g_armv7_rotation_operand_compare(const GArmV7RotationOperand *a, cons
* *
******************************************************************************/
-static void g_armv7_rotation_operand_print(const GArmV7RotationOperand *operand, GBufferLine *line, AsmSyntax syntax)
+static void g_armv7_rotation_operand_print(const GArmV7RotationOperand *operand, GBufferLine *line)
{
g_buffer_line_append_text(line, BLC_ASSEMBLY, "ror", 3, RTT_KEY_WORD, NULL);
g_buffer_line_append_text(line, BLC_ASSEMBLY, " ", 1, RTT_RAW, NULL);
- g_arch_operand_print(operand->value, line, syntax);
+ g_arch_operand_print(operand->value, line);
}
diff --git a/plugins/arm/v7/operands/shift.c b/plugins/arm/v7/operands/shift.c
index e0637ee..b13b361 100644
--- a/plugins/arm/v7/operands/shift.c
+++ b/plugins/arm/v7/operands/shift.c
@@ -64,7 +64,7 @@ static void g_armv7_shift_operand_finalize(GArmV7ShiftOperand *);
static int g_armv7_shift_operand_compare(const GArmV7ShiftOperand *, const GArmV7ShiftOperand *);
/* Traduit un opérande en version humainement lisible. */
-static void g_armv7_shift_operand_print(const GArmV7ShiftOperand *, GBufferLine *, AsmSyntax);
+static void g_armv7_shift_operand_print(const GArmV7ShiftOperand *, GBufferLine *);
@@ -208,7 +208,6 @@ static int g_armv7_shift_operand_compare(const GArmV7ShiftOperand *a, const GArm
* *
* Paramètres : operand = opérande à traiter. *
* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
* *
* Description : Traduit un opérande en version humainement lisible. *
* *
@@ -218,7 +217,7 @@ static int g_armv7_shift_operand_compare(const GArmV7ShiftOperand *a, const GArm
* *
******************************************************************************/
-static void g_armv7_shift_operand_print(const GArmV7ShiftOperand *operand, GBufferLine *line, AsmSyntax syntax)
+static void g_armv7_shift_operand_print(const GArmV7ShiftOperand *operand, GBufferLine *line)
{
switch (operand->shift_type)
{
@@ -241,7 +240,7 @@ static void g_armv7_shift_operand_print(const GArmV7ShiftOperand *operand, GBuff
g_buffer_line_append_text(line, BLC_ASSEMBLY, " ", 1, RTT_RAW, NULL);
- g_arch_operand_print(operand->shift_value, line, syntax);
+ g_arch_operand_print(operand->shift_value, line);
}
diff --git a/plugins/arm/v7/registers/banked.c b/plugins/arm/v7/registers/banked.c
index 72274a6..c141d74 100644
--- a/plugins/arm/v7/registers/banked.c
+++ b/plugins/arm/v7/registers/banked.c
@@ -65,7 +65,7 @@ static void g_armv7_banked_register_dispose(GArmV7BankedRegister *);
static void g_armv7_banked_register_finalize(GArmV7BankedRegister *);
/* Traduit un registre en version humainement lisible. */
-static void g_armv7_banked_register_print(const GArmV7BankedRegister *, GBufferLine *, AsmSyntax);
+static void g_armv7_banked_register_print(const GArmV7BankedRegister *, GBufferLine *);
/* Convertit en indice des paramètres d'encodage. */
static BankedRegisterTarget convert_r_sysm_to_target(uint8_t, uint8_t);
@@ -193,9 +193,8 @@ static void g_armv7_banked_register_finalize(GArmV7BankedRegister *reg)
/******************************************************************************
* *
-* Paramètres : reg = registre à transcrire. *
-* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
+* Paramètres : reg = registre à transcrire. *
+* line = ligne tampon où imprimer l'opérande donné. *
* *
* Description : Traduit un registre en version humainement lisible. *
* *
@@ -205,7 +204,7 @@ static void g_armv7_banked_register_finalize(GArmV7BankedRegister *reg)
* *
******************************************************************************/
-static void g_armv7_banked_register_print(const GArmV7BankedRegister *reg, GBufferLine *line, AsmSyntax syntax)
+static void g_armv7_banked_register_print(const GArmV7BankedRegister *reg, GBufferLine *line)
{
BankedRegisterTarget target; /* Registre ciblé */
char key[MAX_REGNAME_LEN]; /* Mot clef principal */
diff --git a/plugins/arm/v7/registers/basic.c b/plugins/arm/v7/registers/basic.c
index 7194c7f..526e864 100644
--- a/plugins/arm/v7/registers/basic.c
+++ b/plugins/arm/v7/registers/basic.c
@@ -65,7 +65,7 @@ static void g_armv7_basic_register_dispose(GArmV7BasicRegister *);
static void g_armv7_basic_register_finalize(GArmV7BasicRegister *);
/* Traduit un registre en version humainement lisible. */
-static void g_armv7_basic_register_print(const GArmV7BasicRegister *, GBufferLine *, AsmSyntax);
+static void g_armv7_basic_register_print(const GArmV7BasicRegister *, GBufferLine *);
/* Crée une réprésentation de registre de base ARMv7. */
static GArchRegister *_g_armv7_basic_register_new(uint8_t);
@@ -190,9 +190,8 @@ static void g_armv7_basic_register_finalize(GArmV7BasicRegister *reg)
/******************************************************************************
* *
-* Paramètres : reg = registre à transcrire. *
-* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
+* Paramètres : reg = registre à transcrire. *
+* line = ligne tampon où imprimer l'opérande donné. *
* *
* Description : Traduit un registre en version humainement lisible. *
* *
@@ -202,7 +201,7 @@ static void g_armv7_basic_register_finalize(GArmV7BasicRegister *reg)
* *
******************************************************************************/
-static void g_armv7_basic_register_print(const GArmV7BasicRegister *reg, GBufferLine *line, AsmSyntax syntax)
+static void g_armv7_basic_register_print(const GArmV7BasicRegister *reg, GBufferLine *line)
{
char key[MAX_REGNAME_LEN]; /* Mot clef principal */
size_t klen; /* Taille de ce mot clef */
diff --git a/plugins/arm/v7/registers/coproc.c b/plugins/arm/v7/registers/coproc.c
index f13a7aa..8200343 100644
--- a/plugins/arm/v7/registers/coproc.c
+++ b/plugins/arm/v7/registers/coproc.c
@@ -66,7 +66,7 @@ static void g_armv7_cp_register_dispose(GArmV7CpRegister *);
static void g_armv7_cp_register_finalize(GArmV7CpRegister *);
/* Traduit un registre en version humainement lisible. */
-static void g_armv7_cp_register_print(const GArmV7CpRegister *, GBufferLine *, AsmSyntax);
+static void g_armv7_cp_register_print(const GArmV7CpRegister *, GBufferLine *);
/* Crée une réprésentation de registre de co-processeur ARMv7. */
static GArchRegister *_g_armv7_cp_register_new(uint8_t);
@@ -191,9 +191,8 @@ static void g_armv7_cp_register_finalize(GArmV7CpRegister *reg)
/******************************************************************************
* *
-* Paramètres : reg = registre à transcrire. *
-* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
+* Paramètres : reg = registre à transcrire. *
+* line = ligne tampon où imprimer l'opérande donné. *
* *
* Description : Traduit un registre en version humainement lisible. *
* *
@@ -203,7 +202,7 @@ static void g_armv7_cp_register_finalize(GArmV7CpRegister *reg)
* *
******************************************************************************/
-static void g_armv7_cp_register_print(const GArmV7CpRegister *reg, GBufferLine *line, AsmSyntax syntax)
+static void g_armv7_cp_register_print(const GArmV7CpRegister *reg, GBufferLine *line)
{
char key[MAX_REGNAME_LEN]; /* Mot clef principal */
size_t klen; /* Taille de ce mot clef */
diff --git a/plugins/arm/v7/registers/simd.c b/plugins/arm/v7/registers/simd.c
index d762d90..ad84ede 100644
--- a/plugins/arm/v7/registers/simd.c
+++ b/plugins/arm/v7/registers/simd.c
@@ -68,7 +68,7 @@ static void g_armv7_simd_register_dispose(GArmV7SIMDRegister *);
static void g_armv7_simd_register_finalize(GArmV7SIMDRegister *);
/* Traduit un registre en version humainement lisible. */
-static void g_armv7_simd_register_print(const GArmV7SIMDRegister *, GBufferLine *, AsmSyntax);
+static void g_armv7_simd_register_print(const GArmV7SIMDRegister *, GBufferLine *);
/* Crée une réprésentation de registre SIMD ARMv7. */
static GArchRegister *_g_armv7_simd_register_new(SIMDRegisterMapping, uint8_t);
@@ -199,9 +199,8 @@ static void g_armv7_simd_register_finalize(GArmV7SIMDRegister *reg)
/******************************************************************************
* *
-* Paramètres : reg = registre à transcrire. *
-* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
+* Paramètres : reg = registre à transcrire. *
+* line = ligne tampon où imprimer l'opérande donné. *
* *
* Description : Traduit un registre en version humainement lisible. *
* *
@@ -211,7 +210,7 @@ static void g_armv7_simd_register_finalize(GArmV7SIMDRegister *reg)
* *
******************************************************************************/
-static void g_armv7_simd_register_print(const GArmV7SIMDRegister *reg, GBufferLine *line, AsmSyntax syntax)
+static void g_armv7_simd_register_print(const GArmV7SIMDRegister *reg, GBufferLine *line)
{
char key[MAX_REGNAME_LEN]; /* Mot clef principal */
size_t klen; /* Taille de ce mot clef */
diff --git a/plugins/arm/v7/registers/special.c b/plugins/arm/v7/registers/special.c
index 8f80c71..156b9bf 100644
--- a/plugins/arm/v7/registers/special.c
+++ b/plugins/arm/v7/registers/special.c
@@ -65,7 +65,7 @@ static void g_armv7_special_register_dispose(GArmV7SpecialRegister *);
static void g_armv7_special_register_finalize(GArmV7SpecialRegister *);
/* Traduit un registre en version humainement lisible. */
-static void g_armv7_special_register_print(const GArmV7SpecialRegister *, GBufferLine *, AsmSyntax);
+static void g_armv7_special_register_print(const GArmV7SpecialRegister *, GBufferLine *);
/* Crée une réprésentation de registre spécial ARMv7. */
static GArchRegister *_g_armv7_special_register_new(SpecRegTarget);
@@ -190,9 +190,8 @@ static void g_armv7_special_register_finalize(GArmV7SpecialRegister *reg)
/******************************************************************************
* *
-* Paramètres : reg = registre à transcrire. *
-* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
+* Paramètres : reg = registre à transcrire. *
+* line = ligne tampon où imprimer l'opérande donné. *
* *
* Description : Traduit un registre en version humainement lisible. *
* *
@@ -202,7 +201,7 @@ static void g_armv7_special_register_finalize(GArmV7SpecialRegister *reg)
* *
******************************************************************************/
-static void g_armv7_special_register_print(const GArmV7SpecialRegister *reg, GBufferLine *line, AsmSyntax syntax)
+static void g_armv7_special_register_print(const GArmV7SpecialRegister *reg, GBufferLine *line)
{
SpecRegTarget target; /* Registre ciblé */
char key[MAX_REGNAME_LEN]; /* Mot clef principal */
diff --git a/plugins/dalvik/context.h b/plugins/dalvik/context.h
index 85924c2..dbcc979 100644
--- a/plugins/dalvik/context.h
+++ b/plugins/dalvik/context.h
@@ -29,9 +29,6 @@
#include <stdbool.h>
-#include <arch/archbase.h>
-
-
#include "instruction.h"
diff --git a/plugins/dalvik/operands/args.c b/plugins/dalvik/operands/args.c
index 5224567..b131a33 100644
--- a/plugins/dalvik/operands/args.c
+++ b/plugins/dalvik/operands/args.c
@@ -68,7 +68,7 @@ static void g_dalvik_args_operand_finalize(GDalvikArgsOperand *);
static int g_dalvik_args_operand_compare(const GDalvikArgsOperand *, const GDalvikArgsOperand *);
/* Traduit un opérande en version humainement lisible. */
-static void g_dalvik_args_operand_print(const GDalvikArgsOperand *, GBufferLine *, AsmSyntax);
+static void g_dalvik_args_operand_print(const GDalvikArgsOperand *, GBufferLine *);
@@ -225,7 +225,6 @@ static int g_dalvik_args_operand_compare(const GDalvikArgsOperand *a, const GDal
* *
* Paramètres : operand = opérande à traiter. *
* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
* *
* Description : Traduit un opérande en version humainement lisible. *
* *
@@ -235,7 +234,7 @@ static int g_dalvik_args_operand_compare(const GDalvikArgsOperand *a, const GDal
* *
******************************************************************************/
-static void g_dalvik_args_operand_print(const GDalvikArgsOperand *operand, GBufferLine *line, AsmSyntax syntax)
+static void g_dalvik_args_operand_print(const GDalvikArgsOperand *operand, GBufferLine *line)
{
size_t i; /* Boucle de parcours */
@@ -243,14 +242,14 @@ static void g_dalvik_args_operand_print(const GDalvikArgsOperand *operand, GBuff
if (operand->count > 0)
{
- g_arch_operand_print(operand->args[0], line, syntax);
+ g_arch_operand_print(operand->args[0], line);
for (i = 1; i < operand->count; i++)
{
g_buffer_line_append_text(line, BLC_ASSEMBLY, ",", 1, RTT_PUNCT, NULL);
g_buffer_line_append_text(line, BLC_ASSEMBLY, " ", 1, RTT_RAW, NULL);
- g_arch_operand_print(operand->args[i], line, syntax);
+ g_arch_operand_print(operand->args[i], line);
}
diff --git a/plugins/dalvik/operands/pool.c b/plugins/dalvik/operands/pool.c
index 4e2183b..6e4229b 100644
--- a/plugins/dalvik/operands/pool.c
+++ b/plugins/dalvik/operands/pool.c
@@ -77,7 +77,7 @@ static void g_dalvik_pool_operand_finalize(GDalvikPoolOperand *);
static int g_dalvik_pool_operand_compare(const GDalvikPoolOperand *, const GDalvikPoolOperand *);
/* Traduit un opérande en version humainement lisible. */
-static void g_dalvik_pool_operand_print(const GDalvikPoolOperand *, GBufferLine *, AsmSyntax);
+static void g_dalvik_pool_operand_print(const GDalvikPoolOperand *, GBufferLine *);
@@ -251,7 +251,6 @@ static int g_dalvik_pool_operand_compare(const GDalvikPoolOperand *a, const GDal
* *
* Paramètres : operand = opérande à traiter. *
* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
* *
* Description : Traduit un opérande en version humainement lisible. *
* *
@@ -261,7 +260,7 @@ static int g_dalvik_pool_operand_compare(const GDalvikPoolOperand *a, const GDal
* *
******************************************************************************/
-static void g_dalvik_pool_operand_print(const GDalvikPoolOperand *operand, GBufferLine *line, AsmSyntax syntax)
+static void g_dalvik_pool_operand_print(const GDalvikPoolOperand *operand, GBufferLine *line)
{
const char *string; /* Chaîne de caractères #1 */
GDataType *type; /* Type à représenter */
diff --git a/plugins/dalvik/pseudo/fill.c b/plugins/dalvik/pseudo/fill.c
index 92178d9..12382f7 100644
--- a/plugins/dalvik/pseudo/fill.c
+++ b/plugins/dalvik/pseudo/fill.c
@@ -65,7 +65,7 @@ static void g_dalvik_fill_instr_dispose(GDalvikFillInstr *);
static void g_dalvik_fill_instr_finalize(GDalvikFillInstr *);
/* Fournit le nom humain de l'instruction manipulée. */
-static const char *g_dalvik_fill_instruction_get_keyword(const GDalvikFillInstr *, AsmSyntax);
+static const char *g_dalvik_fill_instruction_get_keyword(const GDalvikFillInstr *);
@@ -227,8 +227,7 @@ GArchInstruction *g_dalvik_fill_instr_new(uint16_t ident, GDalvikContext *ctx, c
/******************************************************************************
* *
-* Paramètres : instr = instruction d'assemblage à consulter. *
-* syntax = type de représentation demandée. *
+* Paramètres : instr = instruction d'assemblage à consulter. *
* *
* Description : Fournit le nom humain de l'instruction manipulée. *
* *
@@ -238,7 +237,7 @@ GArchInstruction *g_dalvik_fill_instr_new(uint16_t ident, GDalvikContext *ctx, c
* *
******************************************************************************/
-static const char *g_dalvik_fill_instruction_get_keyword(const GDalvikFillInstr *instr, AsmSyntax syntax)
+static const char *g_dalvik_fill_instruction_get_keyword(const GDalvikFillInstr *instr)
{
const char *result; /* Désignation à retourner */
diff --git a/plugins/dalvik/pseudo/switch.c b/plugins/dalvik/pseudo/switch.c
index cbfb975..ea3aa90 100644
--- a/plugins/dalvik/pseudo/switch.c
+++ b/plugins/dalvik/pseudo/switch.c
@@ -70,7 +70,7 @@ static void g_dalvik_switch_instr_finalize(GDalvikSwitchInstr *);
static bool g_dalvik_switch_decode_data(GDalvikSwitchInstr *, const GBinContent *, const vmpa2t *);
/* Fournit le nom humain de l'instruction manipulée. */
-static const char *g_dalvik_switch_instruction_get_keyword(const GDalvikSwitchInstr *, AsmSyntax);
+static const char *g_dalvik_switch_instruction_get_keyword(const GDalvikSwitchInstr *);
@@ -284,8 +284,7 @@ static bool g_dalvik_switch_decode_data(GDalvikSwitchInstr *instr, const GBinCon
/******************************************************************************
* *
-* Paramètres : instr = instruction d'assemblage à consulter. *
-* syntax = type de représentation demandée. *
+* Paramètres : instr = instruction d'assemblage à consulter. *
* *
* Description : Fournit le nom humain de l'instruction manipulée. *
* *
@@ -295,7 +294,7 @@ static bool g_dalvik_switch_decode_data(GDalvikSwitchInstr *instr, const GBinCon
* *
******************************************************************************/
-static const char *g_dalvik_switch_instruction_get_keyword(const GDalvikSwitchInstr *instr, AsmSyntax syntax)
+static const char *g_dalvik_switch_instruction_get_keyword(const GDalvikSwitchInstr *instr)
{
const char *result; /* Désignation à retourner */
diff --git a/plugins/dalvik/register.c b/plugins/dalvik/register.c
index 458d219..0120495 100644
--- a/plugins/dalvik/register.c
+++ b/plugins/dalvik/register.c
@@ -73,7 +73,7 @@ static void g_dalvik_register_finalize(GDalvikRegister *);
static guint g_dalvik_register_hash(const GDalvikRegister *);
/* Traduit un registre en version humainement lisible. */
-static void g_dalvik_register_print(const GDalvikRegister *, GBufferLine *, AsmSyntax);
+static void g_dalvik_register_print(const GDalvikRegister *, GBufferLine *);
/* Crée une réprésentation de registre Dalvik. */
static GArchRegister *_g_dalvik_register_new(uint16_t);
@@ -224,9 +224,8 @@ static guint g_dalvik_register_hash(const GDalvikRegister *reg)
/******************************************************************************
* *
-* Paramètres : reg = registre à transcrire. *
-* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
+* Paramètres : reg = registre à transcrire. *
+* line = ligne tampon où imprimer l'opérande donné. *
* *
* Description : Traduit un registre en version humainement lisible. *
* *
@@ -236,26 +235,12 @@ static guint g_dalvik_register_hash(const GDalvikRegister *reg)
* *
******************************************************************************/
-static void g_dalvik_register_print(const GDalvikRegister *reg, GBufferLine *line, AsmSyntax syntax)
+static void g_dalvik_register_print(const GDalvikRegister *reg, GBufferLine *line)
{
char key[MAX_REGNAME_LEN]; /* Mot clef principal */
size_t klen; /* Taille de ce mot clef */
- switch (syntax)
- {
- case ASX_INTEL:
- klen = snprintf(key, MAX_REGNAME_LEN, "v%hu", reg->index);
- break;
-
- case ASX_ATT:
- klen = snprintf(key, MAX_REGNAME_LEN, "%%v%hu", reg->index);
- break;
-
- default:
- klen = 0;
- break;
-
- }
+ klen = snprintf(key, MAX_REGNAME_LEN, "v%hu", reg->index);
g_buffer_line_append_text(line, BLC_ASSEMBLY, key, klen, RTT_REGISTER, NULL);
diff --git a/plugins/dalvik/v35/instruction.c b/plugins/dalvik/v35/instruction.c
index a8a3d95..28cb0dd 100644
--- a/plugins/dalvik/v35/instruction.c
+++ b/plugins/dalvik/v35/instruction.c
@@ -65,7 +65,7 @@ static void g_dalvik35_instruction_finalize(GDalvik35Instruction *);
static const char *g_dalvik35_instruction_get_encoding(const GDalvik35Instruction *);
/* Fournit le nom humain de l'instruction manipulée. */
-static const char *g_dalvik35_instruction_get_keyword(const GDalvik35Instruction *, AsmSyntax);
+static const char *g_dalvik35_instruction_get_keyword(const GDalvik35Instruction *);
/* Complète un désassemblage accompli pour une instruction. */
static void g_dalvik35_instruction_call_hook(GDalvik35Instruction *, InstrProcessHook, GArchProcessor *, GProcContext *, GExeFormat *);
@@ -217,8 +217,7 @@ static const char *g_dalvik35_instruction_get_encoding(const GDalvik35Instructio
/******************************************************************************
* *
-* Paramètres : instr = instruction d'assemblage à consulter. *
-* syntax = type de représentation demandée. *
+* Paramètres : instr = instruction d'assemblage à consulter. *
* *
* Description : Fournit le nom humain de l'instruction manipulée. *
* *
@@ -228,7 +227,7 @@ static const char *g_dalvik35_instruction_get_encoding(const GDalvik35Instructio
* *
******************************************************************************/
-static const char *g_dalvik35_instruction_get_keyword(const GDalvik35Instruction *instr, AsmSyntax syntax)
+static const char *g_dalvik35_instruction_get_keyword(const GDalvik35Instruction *instr)
{
const char *result; /* Désignation à retourner */
itid_t uid; /* Accès simplifié */
diff --git a/plugins/fmtp/def.h b/plugins/fmtp/def.h
index 8af70b8..2fa4761 100644
--- a/plugins/fmtp/def.h
+++ b/plugins/fmtp/def.h
@@ -28,7 +28,6 @@
#include <stdbool.h>
-#include <arch/archbase.h>
#include <common/cpp.h>
diff --git a/plugins/lnxsyscalls/hops_armv7.c b/plugins/lnxsyscalls/hops_armv7.c
index ebd4b2c..d706a10 100644
--- a/plugins/lnxsyscalls/hops_armv7.c
+++ b/plugins/lnxsyscalls/hops_armv7.c
@@ -93,7 +93,7 @@ static bool is_armv7_linux_syscall(GArchInstruction *instr)
bool result; /* Conclusion à diffuser */
const char *kwd; /* Désignation d'instruction */
- kwd = g_arch_instruction_get_keyword(instr, ASX_INTEL);
+ kwd = g_arch_instruction_get_keyword(instr);
result = (strcmp(kwd, "svc") == 0);
@@ -139,7 +139,7 @@ static bool resolve_armv7_linux_syscall_number(tracked_path *exec, GArchProcesso
if (got_nr)
{
instr = get_register_write_location(exec, 0, reg);
- kwd = g_arch_instruction_get_keyword(instr, ASX_INTEL);
+ kwd = g_arch_instruction_get_keyword(instr);
/* ... et uniquement les instructions 'mov r7, <imm>' */
if (strncmp(kwd, "mov", 3) != 0)
diff --git a/plugins/pychrysalide/arch/immediate.c b/plugins/pychrysalide/arch/immediate.c
index 794571d..e3c5c34 100644
--- a/plugins/pychrysalide/arch/immediate.c
+++ b/plugins/pychrysalide/arch/immediate.c
@@ -498,26 +498,12 @@ static PyObject *py_imm_operand_to_string(PyObject *self, PyObject *args)
{
PyObject *result; /* Instance à retourner */
GImmOperand *operand; /* Version GLib de l'opérande */
- unsigned int raw_syntax; /* Affichage brut à utiliser */
- int ret; /* Bilan de lecture des args. */
- AsmSyntax syntax; /* Affichage final à utiliser */
char value[IMM_MAX_SIZE]; /* Valeur humainement lisible */
operand = G_IMM_OPERAND(pygobject_get(self));
assert(operand != NULL);
- ret = PyArg_ParseTuple(args, "I", &raw_syntax);
- if (!ret) return NULL;
-
- syntax = raw_syntax;
-
- if (syntax != ASX_INTEL && syntax != ASX_ATT)
- {
- PyErr_SetString(PyExc_ValueError, _("Invalid syntax type"));
- return NULL;
- }
-
- g_imm_operand_to_string(operand, syntax, value);
+ g_imm_operand_to_string(operand, value);
result = PyUnicode_FromString(value);
@@ -620,7 +606,7 @@ PyTypeObject *get_python_imm_operand_type(void)
static PyMethodDef py_imm_operand_methods[] = {
{
"to_string", py_imm_operand_to_string,
- METH_VARARGS,
+ METH_NOARGS,
"to_string($self, syntax, /)\n--\n\nConvert the immediate operand to a string."
},
{ NULL }
diff --git a/plugins/pychrysalide/arch/instruction.c b/plugins/pychrysalide/arch/instruction.c
index 7d5462d..e9a2e04 100644
--- a/plugins/pychrysalide/arch/instruction.c
+++ b/plugins/pychrysalide/arch/instruction.c
@@ -322,7 +322,7 @@ static PyObject *py_arch_instruction_get_keyword(PyObject *self, void *unused)
const char *kw; /* Valeur récupérée */
instr = G_ARCH_INSTRUCTION(pygobject_get(self));
- kw = g_arch_instruction_get_keyword(instr, 0/* FIXME*/);
+ kw = g_arch_instruction_get_keyword(instr);
result = PyUnicode_FromString(kw);
diff --git a/plugins/pychrysalide/arch/module.c b/plugins/pychrysalide/arch/module.c
index 9c10965..406b78c 100644
--- a/plugins/pychrysalide/arch/module.c
+++ b/plugins/pychrysalide/arch/module.c
@@ -87,10 +87,6 @@ static bool py_base_define_constants(PyTypeObject *obj_type)
result &= PyDict_AddIntMacro(obj_type, MDS_32_BITS);
result &= PyDict_AddIntMacro(obj_type, MDS_64_BITS);
- result &= PyDict_AddIntMacro(obj_type, ASX_INTEL);
- result &= PyDict_AddIntMacro(obj_type, ASX_ATT);
- result &= PyDict_AddIntMacro(obj_type, ASX_COUNT);
-
return result;
}
diff --git a/plugins/stackvars/operand.c b/plugins/stackvars/operand.c
index 964996a..2b05209 100644
--- a/plugins/stackvars/operand.c
+++ b/plugins/stackvars/operand.c
@@ -130,7 +130,6 @@ GArchOperand *g_stack_var_operand_new(const GBinRoutine *routine, const GX86ModR
* *
* Paramètres : operand = opérande à transcrire. *
* format = format du binaire manipulé. *
-* syntax = type de représentation demandée. *
* buffer = zone de texte à venir compléter. *
* iter = point d'insertion du nouveau texte. *
* *
@@ -142,7 +141,7 @@ GArchOperand *g_stack_var_operand_new(const GBinRoutine *routine, const GX86ModR
* *
******************************************************************************/
-static void g_stack_var_operand_add_to_gtk_buffer(const GStackVarOperand *operand, const GExeFormat *format, AsmSyntax syntax, GtkTextBuffer *buffer, GtkTextIter *iter)
+static void g_stack_var_operand_add_to_gtk_buffer(const GStackVarOperand *operand, const GExeFormat *format, GtkTextBuffer *buffer, GtkTextIter *iter)
{
const GImmOperand *displacement; /* Décalage supplémentaire */
size_t value; /* Position dans la pile */
diff --git a/src/analysis/db/items/switcher.c b/src/analysis/db/items/switcher.c
index 58e4c7f..bf5c153 100644
--- a/src/analysis/db/items/switcher.c
+++ b/src/analysis/db/items/switcher.c
@@ -561,7 +561,7 @@ static bool g_db_switcher_run(GDbSwitcher *switcher, GLoadedBinary *binary, ImmO
g_imm_operand_set_display(&operand, new, G_SHARE_CONTAINER(instr));
- len = g_imm_operand_to_string(operand, ASX_INTEL, value);
+ len = g_imm_operand_to_string(operand, value);
result = g_buffer_line_replace_text(line, G_OBJECT(op), value, len);
diff --git a/src/analysis/roptions.c b/src/analysis/roptions.c
index a40c784..b9e4b96 100644
--- a/src/analysis/roptions.c
+++ b/src/analysis/roptions.c
@@ -31,8 +31,6 @@ struct _GRenderingOptions
GExeFormat *format; /* Format du contenu bianire */
GArchProcessor *proc; /* Architecture utilisée */
- AsmSyntax syntax; /* Style de rendu ASM */
-
bool show_address[MRD_COUNT]; /* Affichage de l'adresse ? */
bool show_code[MRD_COUNT]; /* Affichage du code brut ? */
@@ -160,25 +158,6 @@ GArchProcessor *g_rendering_options_get_processor(const GRenderingOptions *optio
/******************************************************************************
* *
-* Paramètres : options = options à consulter. *
-* *
-* Description : Fournit le style de rendu pour le contenu ASM. *
-* *
-* Retour : Style de rendu pour le langage d'assemblage. *
-* *
-* Remarques : - *
-* *
-******************************************************************************/
-
-AsmSyntax g_rendering_options_get_syntax(const GRenderingOptions *options)
-{
- return options->syntax;
-
-}
-
-
-/******************************************************************************
-* *
* Paramètres : options = options à mettre à jour. *
* rendering = type de rendu impliqué. *
* state = nouvel état de l'option visée. *
diff --git a/src/analysis/roptions.h b/src/analysis/roptions.h
index 727ee76..1f27ff5 100644
--- a/src/analysis/roptions.h
+++ b/src/analysis/roptions.h
@@ -84,9 +84,6 @@ GExeFormat *g_rendering_options_get_format(const GRenderingOptions *);
/* Fournit l'architecture du contenu binaire représenté. */
GArchProcessor *g_rendering_options_get_processor(const GRenderingOptions *);
-/* Fournit le style de rendu pour le contenu ASM. */
-AsmSyntax g_rendering_options_get_syntax(const GRenderingOptions *);
-
/* Affiche (ou non) les adresses des instructions. */
void g_rendering_options_show_address(GRenderingOptions *, MainRendering, bool);
diff --git a/src/arch/archbase.h b/src/arch/archbase.h
index efdb921..fadfcbc 100644
--- a/src/arch/archbase.h
+++ b/src/arch/archbase.h
@@ -107,17 +107,6 @@ typedef enum _MemoryDataSize
#define MDS_64_BITS MDS_64_BITS_UNSIGNED
-/* Différentes formes de représentation humaine */
-typedef enum _AsmSyntax
-{
- ASX_INTEL, /* Syntaxe Intel */
- ASX_ATT, /* Syntaxte AT&T */
-
- ASX_COUNT
-
-} AsmSyntax;
-
-
/* Etablit la comparaison entre deux adresses. */
int compare_vmpa(const vmpa_t *, const vmpa_t *);
diff --git a/src/arch/immediate.c b/src/arch/immediate.c
index 5519059..2d021be 100644
--- a/src/arch/immediate.c
+++ b/src/arch/immediate.c
@@ -103,10 +103,10 @@ static int g_imm_operand_compare(const GImmOperand *, const GImmOperand *);
static bool g_imm_operand_does_padding_for_display(const GImmOperand *, ImmOperandDisplay);
/* Construit la chaîne de caractères correspondant à l'opérande. */
-static size_t _g_imm_operand_to_string(const GImmOperand *, AsmSyntax, ImmOperandDisplay, char [IMM_MAX_SIZE]);
+static size_t _g_imm_operand_to_string(const GImmOperand *, ImmOperandDisplay, char [IMM_MAX_SIZE]);
/* Traduit un opérande en version humainement lisible. */
-static void g_imm_operand_print(const GImmOperand *, GBufferLine *, AsmSyntax);
+static void g_imm_operand_print(const GImmOperand *, GBufferLine *);
/* Construit un petit résumé concis de l'opérande. */
static char *g_imm_operand_build_tooltip(const GImmOperand *, const GLoadedBinary *);
@@ -909,7 +909,6 @@ bool g_imm_operand_is_null(const GImmOperand *operand)
/******************************************************************************
* *
* Paramètres : operand = opérande à transcrire. *
-* syntax = type de représentation demandée. *
* display = type d'affichage demandé. *
* value = valeur portée par l'opérande transcrite. [OUT] *
* *
@@ -921,7 +920,7 @@ bool g_imm_operand_is_null(const GImmOperand *operand)
* *
******************************************************************************/
-static size_t _g_imm_operand_to_string(const GImmOperand *operand, AsmSyntax syntax, ImmOperandDisplay display, char value[IMM_MAX_SIZE])
+static size_t _g_imm_operand_to_string(const GImmOperand *operand, ImmOperandDisplay display, char value[IMM_MAX_SIZE])
{
size_t result; /* Longueur à retourner */
unsigned int range; /* Catégorie de la taille */
@@ -950,12 +949,12 @@ static size_t _g_imm_operand_to_string(const GImmOperand *operand, AsmSyntax syn
/* Encadrement pour les caractères */
if (display == IOD_CHAR)
{
- prefix = (syntax == ASX_ATT ? "$'" : "'");
+ prefix = "'";
suffix = "'";
}
else
{
- prefix = (syntax == ASX_ATT ? "$" : "");
+ prefix = "";
suffix = "";
}
@@ -1121,14 +1120,14 @@ static size_t _g_imm_operand_to_string(const GImmOperand *operand, AsmSyntax syn
* *
******************************************************************************/
-size_t g_imm_operand_to_string(const GImmOperand *operand, AsmSyntax syntax, char value[IMM_MAX_SIZE])
+size_t g_imm_operand_to_string(const GImmOperand *operand, char value[IMM_MAX_SIZE])
{
size_t result; /* Longueur à retourner */
ImmOperandDisplay display; /* Type d'affichage courant */
display = g_imm_operand_get_display(operand);
- result = _g_imm_operand_to_string(operand, syntax, display, value);
+ result = _g_imm_operand_to_string(operand, display, value);
return result;
@@ -1139,7 +1138,6 @@ size_t g_imm_operand_to_string(const GImmOperand *operand, AsmSyntax syntax, cha
* *
* Paramètres : operand = opérande à traiter. *
* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
* *
* Description : Traduit un opérande en version humainement lisible. *
* *
@@ -1149,12 +1147,12 @@ size_t g_imm_operand_to_string(const GImmOperand *operand, AsmSyntax syntax, cha
* *
******************************************************************************/
-static void g_imm_operand_print(const GImmOperand *operand, GBufferLine *line, AsmSyntax syntax)
+static void g_imm_operand_print(const GImmOperand *operand, GBufferLine *line)
{
char value[IMM_MAX_SIZE]; /* Chaîne à imprimer */
size_t len; /* Taille de l'élément inséré */
- len = g_imm_operand_to_string(operand, syntax, value);
+ len = g_imm_operand_to_string(operand, value);
g_buffer_line_append_text(line, BLC_MAIN, value, len, RTT_IMMEDIATE, G_OBJECT(operand));
@@ -1202,7 +1200,7 @@ static char *g_imm_operand_build_tooltip(const GImmOperand *operand, const GLoad
/* Binaire */
- _g_imm_operand_to_string(operand, ASX_INTEL, IOD_BIN, value);
+ _g_imm_operand_to_string(operand, IOD_BIN, value);
asprintf(&conv, _("Binary: %s"), value);
@@ -1213,7 +1211,7 @@ static char *g_imm_operand_build_tooltip(const GImmOperand *operand, const GLoad
/* Octal */
- _g_imm_operand_to_string(operand, ASX_INTEL, IOD_OCT, value);
+ _g_imm_operand_to_string(operand, IOD_OCT, value);
asprintf(&conv, _("Octal: %s"), value);
@@ -1224,7 +1222,7 @@ static char *g_imm_operand_build_tooltip(const GImmOperand *operand, const GLoad
/* Décimal */
- _g_imm_operand_to_string(operand, ASX_INTEL, IOD_DEC, value);
+ _g_imm_operand_to_string(operand, IOD_DEC, value);
asprintf(&conv, _("Decimal: %s"), value);
@@ -1235,7 +1233,7 @@ static char *g_imm_operand_build_tooltip(const GImmOperand *operand, const GLoad
/* Hexadécimal */
- _g_imm_operand_to_string(operand, ASX_INTEL, IOD_HEX, value);
+ _g_imm_operand_to_string(operand, IOD_HEX, value);
asprintf(&conv, _("Hexadecimal: %s"), value);
diff --git a/src/arch/immediate.h b/src/arch/immediate.h
index 8f8f097..149eff8 100644
--- a/src/arch/immediate.h
+++ b/src/arch/immediate.h
@@ -129,7 +129,7 @@ bool g_imm_operand_is_null(const GImmOperand *);
#define IMM_MAX_SIZE 66
/* Construit la chaîne de caractères correspondant à l'opérande. */
-size_t g_imm_operand_to_string(const GImmOperand *, AsmSyntax, char [IMM_MAX_SIZE]);
+size_t g_imm_operand_to_string(const GImmOperand *, char [IMM_MAX_SIZE]);
/* Convertit une valeur immédiate en position de type phys_t. */
bool g_imm_operand_to_phys_t(const GImmOperand *, phys_t *);
diff --git a/src/arch/instruction-int.h b/src/arch/instruction-int.h
index 365c7e9..af897b0 100644
--- a/src/arch/instruction-int.h
+++ b/src/arch/instruction-int.h
@@ -25,7 +25,6 @@
#define _ARCH_INSTRUCTION_INT_H
-#include "archbase.h"
#include "instruction.h"
#include "../common/array.h"
@@ -35,7 +34,7 @@
typedef const char * (* get_instruction_encoding_fc) (const GArchInstruction *);
/* Fournit le nom humain de l'instruction manipulée. */
-typedef const char * (* get_instruction_keyword_fc) (GArchInstruction *, AsmSyntax );
+typedef const char * (* get_instruction_keyword_fc) (GArchInstruction * );
/* Complète un désassemblage accompli pour une instruction. */
typedef void (* call_instruction_hook_fc) (GArchInstruction *, InstrProcessHook, GArchProcessor *, GProcContext *, GExeFormat *);
diff --git a/src/arch/instruction.c b/src/arch/instruction.c
index 1fe83b5..88033c9 100644
--- a/src/arch/instruction.c
+++ b/src/arch/instruction.c
@@ -1031,8 +1031,7 @@ GArchInstruction *g_arch_instruction_get_given_destination(GArchInstruction *ins
/******************************************************************************
* *
-* Paramètres : instr = instruction d'assemblage à consulter. *
-* syntax = type de représentation demandée. *
+* Paramètres : instr = instruction d'assemblage à consulter. *
* *
* Description : Fournit le nom humain de l'instruction manipulée. *
* *
@@ -1042,11 +1041,11 @@ GArchInstruction *g_arch_instruction_get_given_destination(GArchInstruction *ins
* *
******************************************************************************/
-const char *g_arch_instruction_get_keyword(GArchInstruction *instr, AsmSyntax syntax)
+const char *g_arch_instruction_get_keyword(GArchInstruction *instr)
{
const char *result; /* Désignation à retourner */
- result = G_ARCH_INSTRUCTION_GET_CLASS(instr)->get_keyword(instr, syntax);
+ result = G_ARCH_INSTRUCTION_GET_CLASS(instr)->get_keyword(instr);
return result;
@@ -1529,10 +1528,9 @@ static BufferLineFlags g_arch_instruction_get_flags2(const GArchInstruction *ins
/******************************************************************************
* *
* Paramètres : instr = instruction d'assemblage à représenter. *
-* buffer = espace où placer ledit contenu. *
-* msize = taille idéale des positions et adresses; *
-* content = contenu binaire global à venir lire. *
-* syntax = type de représentation demandée. *
+* line = ligne de rendu à compléter. *
+* index = indice de cette même ligne dans le tampon global. *
+* repeat = indice d'utilisations successives du générateur. *
* content = éventuel contenu binaire brut à imprimer. *
* *
* Description : Ajoute à un tampon GLib le contenu de l'instance spécifiée. *
@@ -1557,7 +1555,7 @@ static void _g_arch_instruction_print(GArchInstruction *instr, GBufferLine *line
/* Instruction proprement dite */
- key = g_arch_instruction_get_keyword(instr, 0/*, syntax*/);
+ key = g_arch_instruction_get_keyword(instr);
klen = strlen(key);
g_buffer_line_append_text(line, BLC_ASSEMBLY_HEAD, key, klen, RTT_INSTRUCTION, G_OBJECT(instr));
@@ -1571,7 +1569,7 @@ static void _g_arch_instruction_print(GArchInstruction *instr, GBufferLine *line
if (count > 0)
{
op = _g_arch_instruction_get_operand(instr, 0);
- g_arch_operand_print(op, line, 0/*syntax*/);
+ g_arch_operand_print(op, line);
g_object_unref(G_OBJECT(op));
for (i = 1; i < count; i++)
@@ -1581,7 +1579,7 @@ static void _g_arch_instruction_print(GArchInstruction *instr, GBufferLine *line
op = _g_arch_instruction_get_operand(instr, i);
- g_arch_operand_print(op, line, 0/*syntax*/);
+ g_arch_operand_print(op, line);
g_object_unref(G_OBJECT(op));
diff --git a/src/arch/instruction.h b/src/arch/instruction.h
index d89158e..aadd2fc 100644
--- a/src/arch/instruction.h
+++ b/src/arch/instruction.h
@@ -250,7 +250,7 @@ GArchInstruction *g_arch_instruction_get_given_destination(GArchInstruction *, I
/* Fournit le nom humain de l'instruction manipulée. */
-const char *g_arch_instruction_get_keyword(GArchInstruction *, AsmSyntax);
+const char *g_arch_instruction_get_keyword(GArchInstruction *);
/* Construit un petit résumé concis de l'instruction. */
char *g_arch_instruction_build_tooltip(const GArchInstruction *);
diff --git a/src/arch/jvm/instruction.c b/src/arch/jvm/instruction.c
index d0301fb..c7a9bfb 100644
--- a/src/arch/jvm/instruction.c
+++ b/src/arch/jvm/instruction.c
@@ -151,7 +151,7 @@ static jvm_instruction _instructions[JOP_COUNT] = {
/* Traduit une instruction en version humainement lisible. */
-static const char *jvm_get_instruction_text(const GJvmInstruction *, const GExeFormat *, AsmSyntax);
+static const char *jvm_get_instruction_text(const GJvmInstruction *, const GExeFormat *);
@@ -283,7 +283,6 @@ JvmOpcodes jvm_guess_next_instruction(const bin_t *data, off_t pos, off_t len, b
* *
* Paramètres : instr = instruction à traiter. *
* format = format du binaire manipulé. *
-* syntax = type de représentation demandée. *
* *
* Description : Traduit une instruction en version humainement lisible. *
* *
@@ -293,7 +292,7 @@ JvmOpcodes jvm_guess_next_instruction(const bin_t *data, off_t pos, off_t len, b
* *
******************************************************************************/
-static const char *jvm_get_instruction_text(const GJvmInstruction *instr, const GExeFormat *format, AsmSyntax syntax)
+static const char *jvm_get_instruction_text(const GJvmInstruction *instr, const GExeFormat *format)
{
return _instructions[instr->type].keyword;
diff --git a/src/arch/jvm/operand.c b/src/arch/jvm/operand.c
index 2cab5e3..4168bcf 100644
--- a/src/arch/jvm/operand.c
+++ b/src/arch/jvm/operand.c
@@ -233,7 +233,6 @@ GArchOperand *g_jvm_ref_operand_new(const bin_t *data, off_t *pos, off_t len, Jv
* *
* Paramètres : operand = opérande à traiter. *
* format = format du binaire manipulé. *
-* syntax = type de représentation demandée. *
* *
* Description : Traduit un opérande en version humainement lisible. *
* *
@@ -243,7 +242,7 @@ GArchOperand *g_jvm_ref_operand_new(const bin_t *data, off_t *pos, off_t len, Jv
* *
******************************************************************************/
-static char *g_jvm_ref_operand_get_text(const GJvmRefOperand *operand, const exe_format *format, AsmSyntax syntax)
+static char *g_jvm_ref_operand_get_text(const GJvmRefOperand *operand, const exe_format *format)
{
char *result; /* Chaîne à retourner */
diff --git a/src/arch/operand-int.h b/src/arch/operand-int.h
index c052e0a..bd12904 100644
--- a/src/arch/operand-int.h
+++ b/src/arch/operand-int.h
@@ -33,7 +33,7 @@
typedef int (* operand_compare_fc) (const GArchOperand *, const GArchOperand *);
/* Traduit un opérande en version humainement lisible. */
-typedef void (* operand_print_fc) (const GArchOperand *, GBufferLine *, AsmSyntax);
+typedef void (* operand_print_fc) (const GArchOperand *, GBufferLine *);
/* Construit un petit résumé concis de l'opérande. */
typedef char * (* operand_build_tooltip_fc) (const GArchOperand *, const GLoadedBinary *);
diff --git a/src/arch/operand.c b/src/arch/operand.c
index 1d4b468..07a93ab 100644
--- a/src/arch/operand.c
+++ b/src/arch/operand.c
@@ -237,7 +237,6 @@ void g_arch_operand_set_alt_text(GArchOperand *operand, const char *text, Render
* *
* Paramètres : operand = opérande à traiter. *
* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
* *
* Description : Traduit un opérande en version humainement lisible. *
* *
@@ -247,7 +246,7 @@ void g_arch_operand_set_alt_text(GArchOperand *operand, const char *text, Render
* *
******************************************************************************/
-void g_arch_operand_print(const GArchOperand *operand, GBufferLine *line, AsmSyntax syntax)
+void g_arch_operand_print(const GArchOperand *operand, GBufferLine *line)
{
size_t alt_len; /* Taille du texte alternatif */
@@ -263,7 +262,7 @@ void g_arch_operand_print(const GArchOperand *operand, GBufferLine *line, AsmSyn
}
else
- G_ARCH_OPERAND_GET_CLASS(operand)->print(operand, line, syntax);
+ G_ARCH_OPERAND_GET_CLASS(operand)->print(operand, line);
}
diff --git a/src/arch/operand.h b/src/arch/operand.h
index bb7388d..9a36f3d 100644
--- a/src/arch/operand.h
+++ b/src/arch/operand.h
@@ -63,7 +63,7 @@ int g_arch_operand_compare(const GArchOperand *, const GArchOperand *);
void g_arch_operand_set_alt_text(GArchOperand *, const char *, RenderingTagType);
/* Traduit un opérande en version humainement lisible. */
-void g_arch_operand_print(const GArchOperand *, GBufferLine *, AsmSyntax);
+void g_arch_operand_print(const GArchOperand *, GBufferLine *);
/* Construit un petit résumé concis de l'opérande. */
char *g_arch_operand_build_tooltip(const GArchOperand *, const GLoadedBinary *);
diff --git a/src/arch/operands/register.c b/src/arch/operands/register.c
index e890fd6..508886b 100644
--- a/src/arch/operands/register.c
+++ b/src/arch/operands/register.c
@@ -48,7 +48,7 @@ static void g_register_operand_finalize(GRegisterOperand *);
static int g_register_operand_compare(const GRegisterOperand *, const GRegisterOperand *);
/* Traduit un opérande en version humainement lisible. */
-static void g_register_operand_print(const GRegisterOperand *, GBufferLine *, AsmSyntax);
+static void g_register_operand_print(const GRegisterOperand *, GBufferLine *);
@@ -195,7 +195,6 @@ static int g_register_operand_compare(const GRegisterOperand *a, const GRegister
* *
* Paramètres : operand = opérande à traiter. *
* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
* *
* Description : Traduit un opérande en version humainement lisible. *
* *
@@ -205,9 +204,9 @@ static int g_register_operand_compare(const GRegisterOperand *a, const GRegister
* *
******************************************************************************/
-static void g_register_operand_print(const GRegisterOperand *operand, GBufferLine *line, AsmSyntax syntax)
+static void g_register_operand_print(const GRegisterOperand *operand, GBufferLine *line)
{
- g_arch_register_print(operand->reg, line, syntax);
+ g_arch_register_print(operand->reg, line);
}
diff --git a/src/arch/raw.c b/src/arch/raw.c
index 4ae1e11..1a77fa6 100644
--- a/src/arch/raw.c
+++ b/src/arch/raw.c
@@ -75,7 +75,7 @@ static void g_raw_instruction_finalize(GRawInstruction *);
static const char *g_raw_instruction_get_encoding(const GRawInstruction *);
/* Fournit le nom humain de l'instruction manipulée. */
-static const char *g_raw_instruction_get_keyword(const GRawInstruction *, AsmSyntax);
+static const char *g_raw_instruction_get_keyword(const GRawInstruction *);
@@ -463,8 +463,7 @@ static const char *g_raw_instruction_get_encoding(const GRawInstruction *instr)
/******************************************************************************
* *
-* Paramètres : instr = instruction d'assemblage à consulter. *
-* syntax = type de représentation demandée. *
+* Paramètres : instr = instruction d'assemblage à consulter. *
* *
* Description : Fournit le nom humain de l'instruction manipulée. *
* *
@@ -474,7 +473,7 @@ static const char *g_raw_instruction_get_encoding(const GRawInstruction *instr)
* *
******************************************************************************/
-static const char *g_raw_instruction_get_keyword(const GRawInstruction *instr, AsmSyntax syntax)
+static const char *g_raw_instruction_get_keyword(const GRawInstruction *instr)
{
GArchOperand *operand; /* Octet décodé à afficher */
MemoryDataSize size; /* Taille de valeur associée */
@@ -599,10 +598,9 @@ static bool g_raw_instruction_serialize(GRawInstruction *instr, GAsmStorage *sto
/******************************************************************************
* *
* Paramètres : instr = instruction d'assemblage à représenter. *
-* buffer = espace où placer ledit contenu. *
-* msize = taille idéale des positions et adresses; *
-* content = contenu binaire global à venir lire. *
-* syntax = type de représentation demandée. *
+* line = ligne de rendu à compléter. *
+* index = indice de cette même ligne dans le tampon global. *
+* repeat = indice d'utilisations successives du générateur. *
* content = éventuel contenu binaire brut à imprimer. *
* *
* Description : Ajoute à un tampon GLib le contenu de l'instance spécifiée. *
@@ -655,7 +653,7 @@ static void g_raw_instruction_print(GRawInstruction *instr, GBufferLine *line, s
/* Zone du code d'assemblage */
- key = g_arch_instruction_get_keyword(base, 0/*, syntax*/);
+ key = g_arch_instruction_get_keyword(base);
klen = strlen(key);
g_buffer_line_append_text(line, BLC_ASSEMBLY_HEAD, key, klen, RTT_INSTRUCTION, NULL);
@@ -750,7 +748,7 @@ static void g_raw_instruction_print(GRawInstruction *instr, GBufferLine *line, s
else
first = false;
- g_arch_operand_print(op, line, 0/*syntax*/);
+ g_arch_operand_print(op, line);
g_object_unref(G_OBJECT(op));
diff --git a/src/arch/register-int.h b/src/arch/register-int.h
index fb9534b..3b40a91 100644
--- a/src/arch/register-int.h
+++ b/src/arch/register-int.h
@@ -39,7 +39,7 @@ typedef guint (* reg_hash_fc) (const GArchRegister *);
typedef int (* reg_compare_fc) (const GArchRegister *, const GArchRegister *);
/* Traduit un registre en version humainement lisible. */
-typedef void (* reg_print_fc) (const GArchRegister *, GBufferLine *, AsmSyntax);
+typedef void (* reg_print_fc) (const GArchRegister *, GBufferLine *);
/* Indique si le registre correspond à ebp ou similaire. */
typedef bool (* reg_is_base_pointer_fc) (const GArchRegister *);
diff --git a/src/arch/register.c b/src/arch/register.c
index f678327..f7c2590 100644
--- a/src/arch/register.c
+++ b/src/arch/register.c
@@ -190,9 +190,8 @@ int g_arch_register_compare(const GArchRegister *a, const GArchRegister *b)
/******************************************************************************
* *
-* Paramètres : reg = registre à transcrire. *
-* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
+* Paramètres : reg = registre à transcrire. *
+* line = ligne tampon où imprimer l'opérande donné. *
* *
* Description : Traduit un registre en version humainement lisible. *
* *
@@ -202,9 +201,9 @@ int g_arch_register_compare(const GArchRegister *a, const GArchRegister *b)
* *
******************************************************************************/
-void g_arch_register_print(const GArchRegister *reg, GBufferLine *line, AsmSyntax syntax)
+void g_arch_register_print(const GArchRegister *reg, GBufferLine *line)
{
- G_ARCH_REGISTER_GET_CLASS(reg)->print(reg, line, syntax);
+ G_ARCH_REGISTER_GET_CLASS(reg)->print(reg, line);
}
diff --git a/src/arch/register.h b/src/arch/register.h
index 5a97682..2c2dece 100644
--- a/src/arch/register.h
+++ b/src/arch/register.h
@@ -29,7 +29,6 @@
#include <stdbool.h>
-#include "archbase.h"
#include "../glibext/gbufferline.h"
@@ -62,7 +61,7 @@ guint g_arch_register_hash(const GArchRegister *);
int g_arch_register_compare(const GArchRegister *, const GArchRegister *);
/* Traduit un registre en version humainement lisible. */
-void g_arch_register_print(const GArchRegister *, GBufferLine *, AsmSyntax);
+void g_arch_register_print(const GArchRegister *, GBufferLine *);
/* Indique si le registre correspond à ebp ou similaire. */
bool g_arch_register_is_base_pointer(const GArchRegister *);
diff --git a/src/arch/target.c b/src/arch/target.c
index 6872efe..bdae746 100644
--- a/src/arch/target.c
+++ b/src/arch/target.c
@@ -83,7 +83,7 @@ static void g_target_operand_finalize(GTargetOperand *);
static int g_target_operand_compare(const GTargetOperand *, const GTargetOperand *);
/* Traduit un opérande en version humainement lisible. */
-static void g_target_operand_print(const GTargetOperand *, GBufferLine *, AsmSyntax);
+static void g_target_operand_print(const GTargetOperand *, GBufferLine *);
/* Construit un petit résumé concis de l'opérande. */
static char *g_target_operand_build_tooltip(const GTargetOperand *, const GLoadedBinary *);
@@ -304,7 +304,6 @@ static int g_target_operand_compare(const GTargetOperand *a, const GTargetOperan
* *
* Paramètres : operand = opérande à traiter. *
* line = ligne tampon où imprimer l'opérande donné. *
-* syntax = type de représentation demandée. *
* *
* Description : Traduit un opérande en version humainement lisible. *
* *
@@ -314,7 +313,7 @@ static int g_target_operand_compare(const GTargetOperand *a, const GTargetOperan
* *
******************************************************************************/
-static void g_target_operand_print(const GTargetOperand *operand, GBufferLine *line, AsmSyntax syntax)
+static void g_target_operand_print(const GTargetOperand *operand, GBufferLine *line)
{
char *label; /* Etiquette liée à un symbole */
vmpa2t tmp; /* Coquille vide pour argument */
diff --git a/src/arch/undefined.c b/src/arch/undefined.c
index 5542ac2..680e4f4 100644
--- a/src/arch/undefined.c
+++ b/src/arch/undefined.c
@@ -67,7 +67,7 @@ static void g_undef_instruction_finalize(GUndefInstruction *);
static const char *g_undef_instruction_get_encoding(const GUndefInstruction *);
/* Fournit le nom humain de l'instruction manipulée. */
-static const char *g_undef_instruction_get_keyword(const GUndefInstruction *, AsmSyntax);
+static const char *g_undef_instruction_get_keyword(const GUndefInstruction *);
@@ -240,8 +240,7 @@ static const char *g_undef_instruction_get_encoding(const GUndefInstruction *ins
/******************************************************************************
* *
-* Paramètres : instr = instruction d'assemblage à consulter. *
-* syntax = type de représentation demandée. *
+* Paramètres : instr = instruction d'assemblage à consulter. *
* *
* Description : Fournit le nom humain de l'instruction manipulée. *
* *
@@ -251,7 +250,7 @@ static const char *g_undef_instruction_get_encoding(const GUndefInstruction *ins
* *
******************************************************************************/
-const char *g_undef_instruction_get_keyword(const GUndefInstruction *instr, AsmSyntax syntax)
+const char *g_undef_instruction_get_keyword(const GUndefInstruction *instr)
{
const char *result; /* Désignation à retourner */
@@ -359,10 +358,9 @@ static bool g_undef_instruction_serialize(GUndefInstruction *instr, GAsmStorage
/******************************************************************************
* *
* Paramètres : instr = instruction d'assemblage à représenter. *
-* buffer = espace où placer ledit contenu. *
-* msize = taille idéale des positions et adresses; *
-* content = contenu binaire global à venir lire. *
-* syntax = type de représentation demandée. *
+* line = ligne de rendu à compléter. *
+* index = indice de cette même ligne dans le tampon global. *
+* repeat = indice d'utilisations successives du générateur. *
* content = éventuel contenu binaire brut à imprimer. *
* *
* Description : Ajoute à un tampon GLib le contenu de l'instance spécifiée. *
@@ -387,7 +385,7 @@ static void g_undef_instruction_print(GUndefInstruction *instr, GBufferLine *lin
/* Instruction proprement dite */
- key = g_arch_instruction_get_keyword(base, 0/*, syntax*/);
+ key = g_arch_instruction_get_keyword(base);
klen = strlen(key);
g_buffer_line_append_text(line, BLC_ASSEMBLY_HEAD, key, klen, RTT_ERROR, NULL);
diff --git a/src/debug/debugger.h b/src/debug/debugger.h
index 159d1f6..3a16ee2 100644
--- a/src/debug/debugger.h
+++ b/src/debug/debugger.h
@@ -31,7 +31,6 @@
#include "misc.h"
#include "../analysis/binary.h"
-#include "../arch/archbase.h"
diff --git a/src/glibext/gbufferline.h b/src/glibext/gbufferline.h
index 1fefb7d..835c0dd 100644
--- a/src/glibext/gbufferline.h
+++ b/src/glibext/gbufferline.h
@@ -31,7 +31,6 @@
#include "linesegment.h"
#include "../analysis/content.h"
-#include "../arch/archbase.h"
#include "../arch/vmpa.h"