mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
New function.
2006-10-09 Soren Sandmann <ssp@localhost.localdomain> * process.c (process_get_vdso_bytes): New function. * elfparser.c (parser_new_from_data): export this function as elf_parser_new_from_data(). * binfile.c (read_inode): Don't stat if filename is '[vdso]'. Instead just return -1; (bin_file_new): Use elf_parser_new_from_data() when the file is [vdso]. * process.c (read_maps): Change the offset of the vdso map to 0 and the inode to -1. * elfparser.c (elf_parser_lookup_symbol): Remove unused 'size' variable. * binfile.c (find_separate_debug_file): Deal with cycles in the debuglink graph. * configure.ac: Set version to 1.1.0. Print warning about HEAD.
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
4050648b0e
commit
b54b0809b6
@ -126,8 +126,9 @@ find_section (ElfParser *parser,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static ElfParser *
|
||||
parser_new_from_data (const guchar *data, gsize length)
|
||||
ElfParser *
|
||||
elf_parser_new_from_data (const guchar *data,
|
||||
gsize length)
|
||||
{
|
||||
ElfParser *parser;
|
||||
gboolean is_64, is_big_endian;
|
||||
@ -214,7 +215,7 @@ elf_parser_new (const char *filename,
|
||||
g_print ("data %p: for %s\n", data, filename);
|
||||
#endif
|
||||
|
||||
parser = parser_new_from_data (data, length);
|
||||
parser = elf_parser_new_from_data (data, length);
|
||||
|
||||
if (!parser)
|
||||
{
|
||||
@ -550,7 +551,6 @@ elf_parser_lookup_symbol (ElfParser *parser,
|
||||
gulong address)
|
||||
{
|
||||
const ElfSym *result;
|
||||
gsize size;
|
||||
|
||||
if (!parser->symbols)
|
||||
read_symbols (parser);
|
||||
|
||||
Reference in New Issue
Block a user