aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/plugin.c7
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8a1ad5f..348f45c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-02-15 Rob Bradford <rob@openedhand.com>
+
+ * src/plugin.c: (action_remote_profile_activate_cb):
+ Use the command line option to oprofileui to specify the supplementary
+ search path for binaries.
+
2008-02-11 Rob Bradford <rob@openedhand.com>
* src/plugin.c:
diff --git a/src/plugin.c b/src/plugin.c
index d18a233..25ad2cd 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -75,7 +75,7 @@
#define GDB_SCRIPT "set solib-absolute-prefix %s\n" \
"target remote %s:2345\n"
-#define OPROFILEUI_COMMAND "oprofile-viewer -h %s"
+#define OPROFILEUI_COMMAND "oprofile-viewer -h %s -s %s"
static gpointer anjuta_plugin_sdk_parent_class;
@@ -1046,6 +1046,7 @@ action_remote_profile_activate_cb (GtkAction *action, gpointer userdata)
{
AnjutaPluginSdk *sp = (AnjutaPluginSdk *)userdata;
gchar *cmd = NULL;
+ gchar *search_path = NULL;
if (!sp->oprofileui_launcher)
{
@@ -1054,7 +1055,8 @@ action_remote_profile_activate_cb (GtkAction *action, gpointer userdata)
(GCallback)oprofileui_launcher_child_exited_cb, sp);
}
- cmd = g_strdup_printf (OPROFILEUI_COMMAND, QEMU_IP_ADDRESS);
+ search_path = g_build_filename (sp->sdk_root, sp->triplet, NULL);
+ cmd = g_strdup_printf (OPROFILEUI_COMMAND, QEMU_IP_ADDRESS, search_path);
if (anjuta_launcher_execute (sp->oprofileui_launcher, cmd, NULL, NULL))
{
@@ -1064,6 +1066,7 @@ action_remote_profile_activate_cb (GtkAction *action, gpointer userdata)
}
g_free (cmd);
+ g_free (search_path);
}
/* Callback for when qemu launcher finished */