aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/plugin.c5
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 91e0456..de4e4d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-02-11 Rob Bradford <rob@openedhand.com>
+
+ * src/plugin.c: (do_local_gdb):
+ Switch the prefix that the cross gdb uses to find the symbols to the
+ new location. (Includes the triplet.)
+
2008-02-04 Ross Burton <ross@openedhand.com>
* src/plugin.c:
diff --git a/src/plugin.c b/src/plugin.c
index ca6e11d..5c69b8d 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -790,6 +790,7 @@ do_local_gdb (AnjutaPluginSdk *sp)
gchar *cmd = NULL;
GError *error = NULL;
gchar *cur_dir = NULL;
+ gchar *gdb_prefix = NULL;
/*
* create a temporary files and write the client side gdb commands to it,
@@ -803,7 +804,8 @@ do_local_gdb (AnjutaPluginSdk *sp)
return;
}
- script_contents = g_strdup_printf (GDB_SCRIPT, sp->sdk_root, QEMU_IP_ADDRESS);
+ gdb_prefix = g_build_filename (sp->sdk_root, sp->triplet, NULL);
+ script_contents = g_strdup_printf (GDB_SCRIPT, gdb_prefix, QEMU_IP_ADDRESS);
channel = g_io_channel_unix_new (fd);
@@ -825,6 +827,7 @@ do_local_gdb (AnjutaPluginSdk *sp)
g_io_channel_unref (channel);
g_free (script_contents);
+ g_free (gdb_prefix);
terminal = anjuta_shell_get_interface (ANJUTA_PLUGIN (sp)->shell,
IAnjutaTerminal, &error);