libdwarf: Using GNU debuglink data

libdwarf

Loading...
Searching...
No Matches
Using GNU debuglink data

Example showing dwarf_add_debuglink_global_path.

Example showing dwarf_add_debuglink_global_path.

An example using both dwarf_add_debuglink_global_path and dwarf_gnu_debuglink .

*/
int exampledebuglink(Dwarf_Debug dbg, Dwarf_Error* error)
{
int res = 0;
char *debuglink_path = 0;
unsigned char *crc = 0;
char *debuglink_fullpath = 0;
unsigned debuglink_fullpath_strlen = 0;
unsigned buildid_type = 0;
char * buildidowner_name = 0;
unsigned char *buildid_itself = 0;
unsigned buildid_length = 0;
char ** paths = 0;
unsigned paths_count = 0;
unsigned i = 0;
/* This is just an example if one knows
of another place full-DWARF objects
may be. "/usr/lib/debug" is automatically
set.
Dwarf_Error
struct Dwarf_Error_s * Dwarf_Error
Definition libdwarf.h:611
Dwarf_Debug
struct Dwarf_Debug_s * Dwarf_Debug
Definition libdwarf.h:617