aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Bradford <rob@o-hand.com>2008-02-15 17:29:28 +0000
committerrob <rob@aea7fca7-3721-49c4-ace3-ac8c44b998bb>2008-02-15 17:29:28 +0000
commita433a74ab7a7b9a1e6375c334ef32cf09f889d7d (patch)
tree21eed21f9a77776ace8292cdb19722b0e54be888
parentd24a614d72ba335dc516bd84966efbd8f9596d6b (diff)
downloadanjuta-poky-a433a74ab7a7b9a1e6375c334ef32cf09f889d7d.tar.gz
anjuta-poky-a433a74ab7a7b9a1e6375c334ef32cf09f889d7d.tar.bz2
anjuta-poky-a433a74ab7a7b9a1e6375c334ef32cf09f889d7d.zip
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.
-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 */