elf-symbol-resolver: Use custom debug dirs

They were set up, but not actually used for resolving. Fix that.
This commit is contained in:
Ivan Molodetskikh
2021-10-08 20:49:34 +03:00
parent 3429249715
commit 01eafe951e

View File

@ -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