[sysprof: 2/5] elf-symbol-resolver: Use custom debug dirs




commit 01eafe951e5d736b76cfeb10f1fa045046743839
Author: Ivan Molodetskikh <yalterz gmail com>
Date:   Fri Oct 8 20:49:34 2021 +0300

    elf-symbol-resolver: Use custom debug dirs
    
    They were set up, but not actually used for resolving. Fix that.

 src/libsysprof/sysprof-elf-symbol-resolver.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/libsysprof/sysprof-elf-symbol-resolver.c b/src/libsysprof/sysprof-elf-symbol-resolver.c
index 1e21e74a..bfd08aa2 100644
--- a/src/libsysprof/sysprof-elf-symbol-resolver.c
+++ b/src/libsysprof/sysprof-elf-symbol-resolver.c
@@ -99,12 +99,10 @@ process_info_get_debug_dirs (const ProcessInfo *pi)
 {
   static const char *standard[] = { "/usr/lib/debug", NULL };
 
-  if (pi->kind == PROCESS_KIND_FLATPAK)
-    return standard; /* TODO */
-  else if (pi->kind == PROCESS_KIND_PODMAN)
-    return standard; /* TODO */
-  else
-    return standard;
+  if (pi->debug_dirs)
+    return (const char * const *) pi->debug_dirs;
+
+  return standard;
 }
 
 static void


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