libdwarf: Reading string offsets section data

libdwarf

Loading...
Searching...
No Matches
Reading string offsets section data

Example accessing the string offsets section.

Example accessing the string offsets section.

An example accessing the string offsets section

Parameters

  dbg | The Dwarf_Debug of interest.
  dw_error | On error dw_error is set to point to the error details.

Returns
  DW_DLV_OK etc.

*/
int examplestrngoffsets(Dwarf_Debug dbg,Dwarf_Error *error)
{
int res = 0;
Dwarf_Str_Offsets_Table sot = 0;
Dwarf_Unsigned wasted_byte_count = 0;
Dwarf_Unsigned table_count = 0;
Dwarf_Error closeerror = 0;
res = dwarf_open_str_offsets_table_access(dbg, &sot,error);
if (res == DW_DLV_NO_ENTRY) {
/* No such table
Dwarf_Str_Offsets_Table
struct Dwarf_Str_Offsets_Table_s * Dwarf_Str_Offsets_Table
Definition libdwarf.h:455
Dwarf_Error
struct Dwarf_Error_s * Dwarf_Error
Definition libdwarf.h:611
Dwarf_Debug
struct Dwarf_Debug_s * Dwarf_Debug
Definition libdwarf.h:617
Dwarf_Unsigned
unsigned long long Dwarf_Unsigned
Definition libdwarf.h:196
dwarf_open_str_offsets_table_access
DW_API int dwarf_open_str_offsets_table_access(Dwarf_Debug dw_dbg, Dwarf_Str_Offsets_Table *dw_table_data, Dwarf_Error *dw_error)
Creates access to a .debug_str_offsets table.