mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Keep a list of elf files for each binary file. In some cases, notably
Mon Jun 2 00:51:46 2008 Søren Sandmann <sandmann@redhat.com> * binfile.c (get_debug_binaries): Keep a list of elf files for each binary file. In some cases, notably glibc on Fedora, the debug binary does not contain a symbol table, but the original file does. svn path=/trunk/; revision=428
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
736806aaa6
commit
7cd38113c8
15
elfparser.c
15
elfparser.c
@ -766,6 +766,21 @@ elf_parser_get_sym_name (ElfParser *parser,
|
||||
return result;
|
||||
}
|
||||
|
||||
gboolean
|
||||
elf_parser_owns_symbol (ElfParser *parser,
|
||||
const ElfSym *sym)
|
||||
{
|
||||
ElfSym *first, *last;
|
||||
|
||||
if (!parser->n_symbols)
|
||||
return FALSE;
|
||||
|
||||
first = parser->symbols;
|
||||
last = parser->symbols + parser->n_symbols - 1;
|
||||
|
||||
return first <= sym && sym <= last;
|
||||
}
|
||||
|
||||
gulong
|
||||
elf_parser_get_sym_address (ElfParser *parser,
|
||||
const ElfSym *sym)
|
||||
|
||||
Reference in New Issue
Block a user