|
libdwarf
|
Functions | |
| 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. | |
| DW_API int | dwarf_close_str_offsets_table_access (Dwarf_Str_Offsets_Table dw_table_data, Dwarf_Error *dw_error) |
| Close str_offsets access, free table_data. | |
| DW_API int | dwarf_next_str_offsets_table (Dwarf_Str_Offsets_Table dw_table_data, Dwarf_Unsigned *dw_unit_length, Dwarf_Unsigned *dw_unit_length_offset, Dwarf_Unsigned *dw_table_start_offset, Dwarf_Half *dw_entry_size, Dwarf_Half *dw_version, Dwarf_Half *dw_padding, Dwarf_Unsigned *dw_table_value_count, Dwarf_Error *dw_error) |
| Iterate through the offsets tables. | |
| DW_API int | dwarf_str_offsets_value_by_index (Dwarf_Str_Offsets_Table dw_table_data, Dwarf_Unsigned dw_index_to_entry, Dwarf_Unsigned *dw_entry_value, Dwarf_Error *dw_error) |
| Access to an individual str offsets table entry. | |
| DW_API int | dwarf_str_offsets_statistics (Dwarf_Str_Offsets_Table dw_table_data, Dwarf_Unsigned *dw_wasted_byte_count, Dwarf_Unsigned *dw_table_count, Dwarf_Error *dw_error) |
| Reports final wasted-bytes count. | |
Shows just the section content in detail. Most library users will never call these, as references to this is handled by the code accessing some Dwarf_Attribute. Reading The Str_Offsets
| DW_API int dwarf_close_str_offsets_table_access | ( | Dwarf_Str_Offsets_Table | dw_table_data, |
| Dwarf_Error * | dw_error ) |
Close str_offsets access, free table_data.
| dw_table_data | |
| dw_error | On error dw_error is set to point to the error details. |
| DW_API int dwarf_next_str_offsets_table | ( | Dwarf_Str_Offsets_Table | dw_table_data, |
| Dwarf_Unsigned * | dw_unit_length, | ||
| Dwarf_Unsigned * | dw_unit_length_offset, | ||
| Dwarf_Unsigned * | dw_table_start_offset, | ||
| Dwarf_Half * | dw_entry_size, | ||
| Dwarf_Half * | dw_version, | ||
| Dwarf_Half * | dw_padding, | ||
| Dwarf_Unsigned * | dw_table_value_count, | ||
| Dwarf_Error * | dw_error ) |
Iterate through the offsets tables.
Access to the tables starts at offset zero. The library progresses through the next table automatically, keeping track internally to know where it is.
| dw_table_data | Pass in an open Dwarf_Str_Offsets_Table. |
| dw_unit_length | On success returns a table unit_length field |
| dw_unit_length_offset | On success returns the section offset of the unit_length field. |
| dw_table_start_offset | On success returns the section offset of the array of table entries. |
| dw_entry_size | On success returns the entry size (4 or 8) |
| dw_version | On success returns the value in the version field 5. |
| dw_padding | On success returns the zero value in the padding field. |
| dw_table_value_count | On success returns the number of table entries, each of size dw_entry_size, in the table. |
| dw_error | On error dw_error is set to point to the error details. |
| 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.
| dw_dbg | Pass in the Dwarf_Debug of interest. |
| dw_table_data | On success returns a pointer to an opaque structure for use in further calls. |
| dw_error | On error dw_error is set to point to the error details. |
| DW_API int dwarf_str_offsets_statistics | ( | Dwarf_Str_Offsets_Table | dw_table_data, |
| Dwarf_Unsigned * | dw_wasted_byte_count, | ||
| Dwarf_Unsigned * | dw_table_count, | ||
| Dwarf_Error * | dw_error ) |
Reports final wasted-bytes count.
Reports the number of tables seen so far. Not very interesting.
| dw_table_data | Pass in the open table pointer. |
| dw_wasted_byte_count | Always returns 0 at present. |
| dw_table_count | On success returns the total number of tables seen so far in the section. |
| dw_error | On error dw_error is set to point to the error details. |
| DW_API int dwarf_str_offsets_value_by_index | ( | Dwarf_Str_Offsets_Table | dw_table_data, |
| Dwarf_Unsigned | dw_index_to_entry, | ||
| Dwarf_Unsigned * | dw_entry_value, | ||
| Dwarf_Error * | dw_error ) |
Access to an individual str offsets table entry.
| dw_table_data | Pass in the open table pointer. |
| dw_index_to_entry | Pass in the entry number, 0 through dw_table_value_count-1 for the active table |
| dw_entry_value | On success returns the value in that table entry, an offset into a string table. |
| dw_error | On error dw_error is set to point to the error details. |