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,11 +99,9 @@ process_info_get_debug_dirs (const ProcessInfo *pi)
{ {
static const char *standard[] = { "/usr/lib/debug", NULL }; static const char *standard[] = { "/usr/lib/debug", NULL };
if (pi->kind == PROCESS_KIND_FLATPAK) if (pi->debug_dirs)
return standard; /* TODO */ return (const char * const *) pi->debug_dirs;
else if (pi->kind == PROCESS_KIND_PODMAN)
return standard; /* TODO */
else
return standard; return standard;
} }