summaryrefslogtreecommitdiff
path: root/src/analysis/line.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-03-11 22:59:46 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-03-11 22:59:46 (GMT)
commitc4231094c9c77c685371d726d28e65c0459486de (patch)
tree2d4bb57239cb46bd2b1194c853c3a7263e487455 /src/analysis/line.h
parent29a22c425f492427f45b71de937f2d99587c8d34 (diff)
Inserted comments into disassembled code.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@53 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis/line.h')
-rw-r--r--src/analysis/line.h31
1 files changed, 21 insertions, 10 deletions
diff --git a/src/analysis/line.h b/src/analysis/line.h
index cd2ec71..b0635bf 100644
--- a/src/analysis/line.h
+++ b/src/analysis/line.h
@@ -25,6 +25,7 @@
#define _ANALYSIS_LINE_H
+#include <stdbool.h>
#include <gtk/gtk.h>
@@ -37,10 +38,21 @@
typedef enum _RenderingLineType
{
RLT_PROLOGUE, /* Description de l'analyse */
+ RLT_PROTOTYPE, /* Prototype de fonction */
RLT_CODE /* Code en langage machine */
} RenderingLineType;
+/* Passage de paramètres compact */
+typedef struct _disass_options
+{
+ bool show_address; /* Affichage de l'adresse ? */
+ bool show_code; /* Affichage du code brut ? */
+
+ exe_format *format; /* Format du contenu bianire */
+ asm_processor *proc; /* Architecture utilisée */
+
+} disass_options;
@@ -52,6 +64,9 @@ typedef struct _rendering_line rendering_line;
/* Ajoute une ligne à un ensemble existant. */
void add_line_to_rendering_lines(rendering_line **, rendering_line *);
+/* Insère une ligne dans un ensemble existant. */
+void insert_line_into_rendering_lines(rendering_line **, rendering_line *, bool);
+
/* Met à jour la nombre d'octets maximale par instruction. */
@@ -76,23 +91,19 @@ rendering_line *create_prologue_line(const char *);
-/* ------------------------ LIGNE DE CODE EN LANGAGE MACHINE ------------------------ */
+/* ----------------------- COMMENTAIRES SUR UNE LIGNE ENTIERE ----------------------- */
-/* Passage de paramètres compact */
-typedef struct _disass_options
-{
- bool show_address; /* Affichage de l'adresse ? */
- bool show_code; /* Affichage du code brut ? */
+/* Crée une ligne de commentaires entière. */
+rendering_line *create_comment_line(uint64_t, RenderingLineType, const char *, const disass_options *);
- exe_format *format; /* Format du contenu bianire */
- asm_processor *proc; /* Architecture utilisée */
-} disass_options;
+
+/* ------------------------ LIGNE DE CODE EN LANGAGE MACHINE ------------------------ */
/* Crée une ligne de représentation de code binaire. */
-rendering_line *create_code_line(asm_instr *, const disass_options *);
+rendering_line *create_code_line(asm_instr *, uint64_t, const disass_options *);