summaryrefslogtreecommitdiff
path: root/src/debug/debugger.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-02-18 16:41:31 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-02-18 16:41:31 (GMT)
commitdeb012d919ea6c5e79702a39a03a85be2ffcf406 (patch)
treeae9cee108d05e0a6674d8617a08d0ea09165443c /src/debug/debugger.h
parent73605bffb935fc51a52be1936426211e31dd898a (diff)
Retrieved the frames stack from the running process.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@235 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/debug/debugger.h')
-rw-r--r--src/debug/debugger.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/debug/debugger.h b/src/debug/debugger.h
index 362f8a1..7a6459b 100644
--- a/src/debug/debugger.h
+++ b/src/debug/debugger.h
@@ -31,6 +31,7 @@
#include "../analysis/binary.h"
+#include "../arch/archbase.h"
@@ -46,6 +47,16 @@ typedef enum _DebuggerType
} DebuggerType;
+/* Définition d'une frame */
+typedef struct _dbg_frame_t
+{
+
+ vmpa_t addr; /* Position dans le code */
+
+} dbg_frame_t;
+
+
+
/* Transmission des valeurs des registres */
typedef struct _register_value
{
@@ -91,6 +102,9 @@ void g_binary_debugger_kill(GBinaryDebugger *);
/* Fournit les identifiants de tous les threads actifs. */
pid_t *g_binary_debugger_list_all_threads(GBinaryDebugger *, char ***, size_t *);
+/* Fournit la liste des frames courantes d'un thread donné. */
+dbg_frame_t *g_binary_debugger_get_frames_stack(GBinaryDebugger *, pid_t, size_t *);
+
/* Fournit la valeur des registres de l'architecture. */
register_value *g_binary_debugger_get_registers(GBinaryDebugger *, size_t *);