summaryrefslogtreecommitdiff
path: root/src/debug
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-07-26 22:40:17 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-07-26 22:40:17 (GMT)
commitfd2abec30a224279c62a7ab4892d95e56cb08dff (patch)
tree2cfcc70115749267fb0f1bc96511dfb61935203f /src/debug
parent3155a05a21a52a173b8a711c402426392eb53c2a (diff)
Moved the openida_binary structure to a GOpenidaBinary GLib object.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@103 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/debugger-int.h2
-rw-r--r--src/debug/debuggers.c2
-rw-r--r--src/debug/debuggers.h2
-rw-r--r--src/debug/ptrace/options.c4
-rw-r--r--src/debug/ptrace/options.h2
-rw-r--r--src/debug/ptrace/ptrace.c4
6 files changed, 8 insertions, 8 deletions
diff --git a/src/debug/debugger-int.h b/src/debug/debugger-int.h
index 1b47a03..3ba594a 100644
--- a/src/debug/debugger-int.h
+++ b/src/debug/debugger-int.h
@@ -47,7 +47,7 @@ struct _GBinaryDebugger
{
GObject parent; /* A laisser en premier */
- openida_binary *binary; /* Cible à traiter */
+ GOpenidaBinary *binary; /* Cible à traiter */
basic_debugger_fc run; /* Démarre le débogueur */
basic_debugger_fc pause; /* Met en pause le débogueur */
diff --git a/src/debug/debuggers.c b/src/debug/debuggers.c
index a9537c3..c9af67a 100644
--- a/src/debug/debuggers.c
+++ b/src/debug/debuggers.c
@@ -98,7 +98,7 @@ static void g_binary_debugger_init(GBinaryDebugger *debugger)
* *
******************************************************************************/
-GBinaryDebugger *g_new_binary_debugger(DebuggerType type, openida_binary *binary)
+GBinaryDebugger *g_new_binary_debugger(DebuggerType type, GOpenidaBinary *binary)
{
GBinaryDebugger *result;
diff --git a/src/debug/debuggers.h b/src/debug/debuggers.h
index 03c3164..90db12f 100644
--- a/src/debug/debuggers.h
+++ b/src/debug/debuggers.h
@@ -72,7 +72,7 @@ typedef struct _GBinaryDebuggerClass GBinaryDebuggerClass;
GType g_binary_debugger_get_type(void);
/* Crée un nouveau débogueur. */
-GBinaryDebugger *g_new_binary_debugger(DebuggerType, openida_binary *);
+GBinaryDebugger *g_new_binary_debugger(DebuggerType, GOpenidaBinary *);
/* Démarre une procédure de débogage. */
void g_binary_debugger_run(GBinaryDebugger *);
diff --git a/src/debug/ptrace/options.c b/src/debug/ptrace/options.c
index 6aa8a1c..4123e3f 100644
--- a/src/debug/ptrace/options.c
+++ b/src/debug/ptrace/options.c
@@ -65,13 +65,13 @@ struct _ptrace_options
* *
******************************************************************************/
-ptrace_options *create_ptrace_options_from_binary(const openida_binary *binary)
+ptrace_options *create_ptrace_options_from_binary(const GOpenidaBinary *binary)
{
ptrace_options *result;
result = (ptrace_options *)calloc(1, sizeof(ptrace_options));
- result->filename = strdup(openida_binary_get_filename(binary));
+ result->filename = strdup(g_openida_binary_get_filename(binary));
result->argv = (char **)calloc(2, sizeof(char *));
diff --git a/src/debug/ptrace/options.h b/src/debug/ptrace/options.h
index bc25abf..5d02617 100644
--- a/src/debug/ptrace/options.h
+++ b/src/debug/ptrace/options.h
@@ -40,7 +40,7 @@ typedef struct _ptrace_options ptrace_options;
/* Etablit les options par défaut pour un binaire donné. */
-ptrace_options *create_ptrace_options_from_binary(const openida_binary *);
+ptrace_options *create_ptrace_options_from_binary(const GOpenidaBinary *);
/* Lance le processus à déboguer via ptrace(). */
bool run_ptrace_options_process(const ptrace_options *);
diff --git a/src/debug/ptrace/ptrace.c b/src/debug/ptrace/ptrace.c
index 8840ce6..a5c065e 100644
--- a/src/debug/ptrace/ptrace.c
+++ b/src/debug/ptrace/ptrace.c
@@ -300,7 +300,7 @@ void *ptrace_thread(GPtraceDebugger *debugger)
gdk_threads_enter();
log_variadic_message(LMT_PROCESS, _("Starting to debug %s..."),
- openida_binary_get_filename(G_BINARY_DEBUGGER(debugger)->binary));
+ g_openida_binary_get_filename(G_BINARY_DEBUGGER(debugger)->binary));
gdk_flush ();
gdk_threads_leave();
@@ -376,7 +376,7 @@ void *ptrace_thread(GPtraceDebugger *debugger)
}
log_variadic_message(LMT_PROCESS, _("Finished to debug %s..."),
- openida_binary_get_filename(G_BINARY_DEBUGGER(debugger)->binary));
+ g_openida_binary_get_filename(G_BINARY_DEBUGGER(debugger)->binary));
break;