summaryrefslogtreecommitdiff
path: root/src/analysis/binary.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-01-14 16:06:42 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-01-14 16:06:42 (GMT)
commit2ad11520c0bfefd68a89689497752983792a96ba (patch)
tree9271a1bd90bd58f49b8a68c41b348639f67fb559 /src/analysis/binary.c
parentd90aa93fc202fdf1ba4e4e7e799ce8d7e4632b7f (diff)
Updated calls to take the binary rendering options into account.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@225 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis/binary.c')
-rw-r--r--src/analysis/binary.c65
1 files changed, 65 insertions, 0 deletions
diff --git a/src/analysis/binary.c b/src/analysis/binary.c
index 2e1ecc2..53da917 100644
--- a/src/analysis/binary.c
+++ b/src/analysis/binary.c
@@ -101,6 +101,9 @@ struct _GOpenidaBinary
size_t decbuf_count; /* Taille des tableaux */
size_t defsrc; /* Fichier source principal */
+ bool text_display[2]; /* Position et code binaire #1 */
+ bool lines_display; /* Affichage des lignes */
+
GBreakGroup **brk_groups; /* Groupes de points d'arrêt */
size_t brk_count; /* Taille de cette liste */
GBreakGroup *brk_default; /* Groupe par défaut */
@@ -344,6 +347,11 @@ static void g_openida_binary_class_init(GOpenidaBinaryClass *klass)
static void g_openida_binary_init(GOpenidaBinary *binary)
{
+ binary->text_display[0] = true;
+ binary->text_display[1] = true;
+
+ binary->lines_display = true;
+
/* FIXME : à replacer ailleurs */
g_openida_binary_add_break_group(binary, _("default"));
@@ -1027,6 +1035,44 @@ GCodeBuffer *g_openida_binary_get_disassembled_buffer(const GOpenidaBinary *bina
/******************************************************************************
* *
* Paramètres : binary = élément binaire à consulter. *
+* *
+* Description : Indique si les adresses doivent apparaître dans le rendu. *
+* *
+* Retour : Consigne d'affichage. [OUT] *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+bool *g_openida_binary_display_addresses_in_text(const GOpenidaBinary *binary)
+{
+ return &binary->text_display[0];
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : binary = élément binaire à consulter. *
+* *
+* Description : Indique si le code doit apparaître dans le rendu. *
+* *
+* Retour : Consigne d'affichage. [OUT] *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+bool *g_openida_binary_display_code_in_text(const GOpenidaBinary *binary)
+{
+ return &binary->text_display[1];
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : binary = élément binaire à consulter. *
* index = indice du fichier à retrouver. *
* *
* Description : Fournit le tampon associé au contenu d'un fichier source. *
@@ -1054,6 +1100,25 @@ GCodeBuffer *g_openida_binary_get_decompiled_buffer(const GOpenidaBinary *binary
/******************************************************************************
* *
+* Paramètres : binary = élément binaire à consulter. *
+* *
+* Description : Indique si les lignes doivent apparaître dans le rendu. *
+* *
+* Retour : Consigne d'affichage. [OUT] *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+bool *g_openida_binary_display_decomp_lines(const GOpenidaBinary *binary)
+{
+ return &binary->lines_display;
+
+}
+
+
+/******************************************************************************
+* *
* Paramètres : filename = nom du fichier à charger. *
* length = taille des données mises en mémoire. [OUT] *
* *