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
18
binparser.h
18
binparser.h
@ -3,13 +3,13 @@
|
||||
typedef struct BinField BinField;
|
||||
typedef struct BinFormat BinFormat;
|
||||
typedef struct BinParser BinParser;
|
||||
|
||||
/* BinParser */
|
||||
BinParser *bin_parser_new (const guchar *data,
|
||||
gsize length);
|
||||
BinFormat *bin_format_new (gboolean big_endian,
|
||||
const char *name, BinField *field,
|
||||
...);
|
||||
const guchar *bin_parser_get_data (BinParser *parser);
|
||||
gsize bin_parser_get_length (BinParser *parser);
|
||||
gsize bin_parser_get_offset (BinParser *parser);
|
||||
gsize bin_format_get_size (BinFormat *format);
|
||||
void bin_parser_index (BinParser *parser, int index);
|
||||
void bin_parser_begin (BinParser *parser,
|
||||
BinFormat *format,
|
||||
@ -18,9 +18,17 @@ void bin_parser_end (BinParser *parser);
|
||||
const char *bin_parser_get_string (BinParser *parser);
|
||||
guint64 bin_parser_get_uint (BinParser *parser,
|
||||
const gchar *name);
|
||||
|
||||
/* BinFormat */
|
||||
BinFormat *bin_format_new (gboolean big_endian,
|
||||
const char *name, BinField *field,
|
||||
...);
|
||||
gsize bin_format_get_size (BinFormat *format);
|
||||
|
||||
/* BinField */
|
||||
BinField *bin_field_new_uint8 (void);
|
||||
BinField *bin_field_new_uint16 (void);
|
||||
BinField *bin_field_new_uint32 (void);
|
||||
BinField *bin_field_new_uint64 (void);
|
||||
BinField *bin_field_new_fixed_array (int n_elements,
|
||||
int element_size);
|
||||
int element_size);
|
||||
|
||||
Reference in New Issue
Block a user