[gnome-builder/gnome-builder-3-26] sysprof: prefer debug directories over platform



commit 1808d2d27ee36f93755d6421406be5a4a7d1f656
Author: Christian Hergert <chergert redhat com>
Date:   Wed Sep 20 14:44:40 2017 -0700

    sysprof: prefer debug directories over platform
    
    We want to improve the chances that Sysprof will locate the debug directory
    before it locates the regular ELF directory.

 plugins/sysprof/gbp-sysprof-workbench-addin.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plugins/sysprof/gbp-sysprof-workbench-addin.c b/plugins/sysprof/gbp-sysprof-workbench-addin.c
index 48c4204..5800e0c 100644
--- a/plugins/sysprof/gbp-sysprof-workbench-addin.c
+++ b/plugins/sysprof/gbp-sysprof-workbench-addin.c
@@ -183,11 +183,12 @@ profiler_run_handler (IdeRunManager *run_manager,
    *       type helper from the runtime.
    */
   {
+    /* Put debug directories first so the resolve higher */
     static const gchar *dirs[] = {
-      "/usr/lib",
+      "/app/lib/debug",
       "/usr/lib/debug",
       "/app/lib",
-      "/app/lib/debug",
+      "/usr/lib",
       NULL
     };
 


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