Initial build id support

svn path=/trunk/; revision=410
This commit is contained in:
Søren Sandmann Pedersen
2008-04-20 20:58:11 +00:00
parent 12de20b938
commit 90d1fa1de5
7 changed files with 114 additions and 11 deletions

View File

@ -127,9 +127,9 @@ separate_debug_file_exists (const char *name, guint32 crc)
static const char *const debug_file_directory = DEBUGDIR;
static ElfParser *
get_debug_file (ElfParser *elf,
const char *filename,
char **new_name)
get_debuglink_file (ElfParser *elf,
const char *filename,
char **new_name)
{
#define N_TRIES 4
const char *basename;
@ -183,6 +183,27 @@ get_debug_file (ElfParser *elf,
return result;
}
static ElfParser *
get_build_id_file (ElfParser *elf,
const char *filename,
char **new_name)
{
return NULL;
}
static ElfParser *
get_debug_file (ElfParser *elf,
const char *filename,
char **new_name)
{
ElfParser *t;
if ((t = get_build_id_file (elf, filename, new_name)))
return t;
else
return get_debuglink_file (elf, filename, new_name);
}
static ElfParser *
find_separate_debug_file (ElfParser *elf,
const char *filename)