summaryrefslogtreecommitdiff
path: root/src/debug/ptrace
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/ptrace
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/ptrace')
-rw-r--r--src/debug/ptrace/options.c4
-rw-r--r--src/debug/ptrace/options.h2
-rw-r--r--src/debug/ptrace/ptrace.c4
3 files changed, 5 insertions, 5 deletions
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;