summaryrefslogtreecommitdiff
path: root/src/arch/context.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-05-24 21:45:53 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-05-24 21:46:04 (GMT)
commit0e2849345be5018152d60b5aa27eebb2de75e1df (patch)
tree524c6f7e5a5a32fa65427c44d8baa2e6204eb732 /src/arch/context.h
parent3a77653d347c8e60a1c80bd4d57a4fd5e317490f (diff)
Attached priority levels with disassembly starting points.
Diffstat (limited to 'src/arch/context.h')
-rw-r--r--src/arch/context.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/arch/context.h b/src/arch/context.h
index 334eaf1..d8b5793 100644
--- a/src/arch/context.h
+++ b/src/arch/context.h
@@ -48,6 +48,18 @@ typedef struct _GProcContext GProcContext;
typedef struct _GProcContextClass GProcContextClass;
+/* Degré de priorité des points à désassembler */
+typedef enum _DisassPriorityLevel
+{
+ DPL_ENTRY_POINT, /* Validité indiscutable */
+ DPL_SYMBOL, /* Symboles utilisés */
+ DPL_OTHER, /* Injections complémentaires */
+
+ DPL_COUNT
+
+} DisassPriorityLevel;
+
+
/* Indique le type définit par la GLib pour le contexte de processeur. */
GType g_proc_context_get_type(void);
@@ -55,10 +67,10 @@ GType g_proc_context_get_type(void);
void g_proc_context_attach_counter(GProcContext *, gint *);
/* Ajoute une adresse virtuelle comme point de départ de code. */
-void g_proc_context_push_drop_point(GProcContext *, unsigned int, virt_t, ...);
+void g_proc_context_push_drop_point(GProcContext *, DisassPriorityLevel, virt_t, ...);
/* Fournit une adresse virtuelle comme point de départ de code. */
-bool g_proc_context_pop_drop_point(GProcContext *, virt_t *);
+bool g_proc_context_pop_drop_point(GProcContext *, DisassPriorityLevel *, virt_t *);
/* Empile une adresse de nouveau symbole à prendre en compte. */
void g_proc_context_push_new_symbol_at(GProcContext *, const vmpa2t *);