mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
New function
2006-08-20 Soren Sandmann <sandmann@daimi.au.dk> * elfparser.c (elf_parser_get_debug_link): New function * elfparser.c: Delete SymbolTable typedef * binparser.[ch] (bin_parser_get_data): New function (bin_parser_get_length): New function * elfparser.[ch] (elf_parser_get_crc32): New function * TODO: Updates * elfparser.c (elf_parser_lookup_symbol): Offset passed in addresses by the load address. * elfparser.c (elf_parser_get_load_address): New function to compute the load address of the beginning of the file.
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
49e1fabe46
commit
1b72901c4d
14
binparser.c
14
binparser.c
@ -333,9 +333,21 @@ bin_parser_get_offset (BinParser *parser)
|
||||
return parser->frame->offset;
|
||||
}
|
||||
|
||||
const guchar *
|
||||
bin_parser_get_data (BinParser *parser)
|
||||
{
|
||||
return parser->data;
|
||||
}
|
||||
|
||||
gsize
|
||||
bin_parser_get_length (BinParser *parser)
|
||||
{
|
||||
return parser->length;
|
||||
}
|
||||
|
||||
BinField *
|
||||
bin_field_new_fixed_array (int n_elements,
|
||||
int element_size)
|
||||
int element_size)
|
||||
{
|
||||
BinField *field = g_new0 (BinField, 1);
|
||||
field->width = n_elements * element_size;
|
||||
|
||||
Reference in New Issue
Block a user