mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Initial build id support
svn path=/trunk/; revision=410
This commit is contained in:
27
binfile.c
27
binfile.c
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user