[gnome-builder] sysprof: tweak paths for sysprof



commit caf785b50f6c1b4e2efb7110eb12f22918096e2a
Author: Christian Hergert <chergert redhat com>
Date:   Sun Feb 26 00:10:29 2017 -0800

    sysprof: tweak paths for sysprof

 plugins/sysprof/gbp-sysprof-workbench-addin.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/plugins/sysprof/gbp-sysprof-workbench-addin.c b/plugins/sysprof/gbp-sysprof-workbench-addin.c
index 62fbefa..df39de9 100644
--- a/plugins/sysprof/gbp-sysprof-workbench-addin.c
+++ b/plugins/sysprof/gbp-sysprof-workbench-addin.c
@@ -184,10 +184,10 @@ profiler_run_handler (IdeRunManager *run_manager,
    */
   {
     static const gchar *dirs[] = {
+      "/usr/lib",
       "/usr/lib/debug",
       "/app/lib",
       "/app/lib/debug",
-      "/app/lib/debug/lib",
       NULL
     };
 
@@ -195,11 +195,10 @@ profiler_run_handler (IdeRunManager *run_manager,
 
     for (guint i = 0; dirs[i]; i++)
       {
-        gchar *path;
+        g_autofree gchar *path = get_runtime_sysroot (context, dirs[i]);
 
-        path = get_runtime_sysroot (context, dirs[i]);
-        sp_symbol_dirs_add (path);
-        g_free (path);
+        if (path != NULL)
+          sp_symbol_dirs_add (path);
       }
   }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]