aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugin.c')
-rw-r--r--src/plugin.c7
1 files changed, 5 insertions, 2 deletions
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 */