|
satyr 0.43
|
Shared library information as produced by GDB. More...
#include <stdbool.h>#include <inttypes.h>Go to the source code of this file.
Data Structures | |
| struct | sr_gdb_sharedlib |
| A shared library memory location as reported by GDB. More... | |
Enumerations | |
| enum | { SYMS_OK , SYMS_WRONG , SYMS_NOT_FOUND } |
Functions | |
| struct sr_gdb_sharedlib * | sr_gdb_sharedlib_new (void) |
| void | sr_gdb_sharedlib_init (struct sr_gdb_sharedlib *sharedlib) |
| void | sr_gdb_sharedlib_free (struct sr_gdb_sharedlib *sharedlib) |
| struct sr_gdb_sharedlib * | sr_gdb_sharedlib_append (struct sr_gdb_sharedlib *dest, struct sr_gdb_sharedlib *item) |
| struct sr_gdb_sharedlib * | sr_gdb_sharedlib_dup (struct sr_gdb_sharedlib *sharedlib, bool siblings) |
| int | sr_gdb_sharedlib_count (struct sr_gdb_sharedlib *sharedlib) |
| struct sr_gdb_sharedlib * | sr_gdb_sharedlib_find_address (struct sr_gdb_sharedlib *first, uint64_t address) |
| struct sr_gdb_sharedlib * | sr_gdb_sharedlib_parse (const char *input) |
Shared library information as produced by GDB.
Definition in file sharedlib.h.
| anonymous enum |
Definition at line 35 of file sharedlib.h.
| struct sr_gdb_sharedlib * sr_gdb_sharedlib_append | ( | struct sr_gdb_sharedlib * | dest, |
| struct sr_gdb_sharedlib * | item ) |
Appends 'item' at the end of the list 'dest'.
| int sr_gdb_sharedlib_count | ( | struct sr_gdb_sharedlib * | sharedlib | ) |
Returns the number of sharedlibs in the list.
| struct sr_gdb_sharedlib * sr_gdb_sharedlib_dup | ( | struct sr_gdb_sharedlib * | sharedlib, |
| bool | siblings ) |
Creates a duplicate of the sharedlib structure.
| sharedlib | Structure to be duplicated. |
| siblings | Whether to duplicate a single structure or whole list. |
| struct sr_gdb_sharedlib * sr_gdb_sharedlib_find_address | ( | struct sr_gdb_sharedlib * | first, |
| uint64_t | address ) |
Finds whether the address belongs to some sharedlib from the list starting by 'first'.
| void sr_gdb_sharedlib_free | ( | struct sr_gdb_sharedlib * | sharedlib | ) |
Releases the memory held by the sharedlib. Sharedlibs referenced by .next are not released.
| sharedlib | If sharedlib is NULL, no operation is performed. |
| void sr_gdb_sharedlib_init | ( | struct sr_gdb_sharedlib * | sharedlib | ) |
Initializes all members of the sharedlib to default values. No memory is released, members are simply overwritten. This is useful for initializing a sharedlib structure placed on the stack.
| struct sr_gdb_sharedlib * sr_gdb_sharedlib_new | ( | void | ) |
Creates and initializes a new sharedlib structure.
| struct sr_gdb_sharedlib * sr_gdb_sharedlib_parse | ( | const char * | input | ) |
Parses the output of GDB's 'info sharedlib' command.
| input | String representing the stacktrace. |