Lines Matching refs:sot

136 dwarf_str_offsets_value_by_index(Dwarf_Str_Offsets_Table sot,  in dwarf_str_offsets_value_by_index()  argument
144 VALIDATE_SOT(sot) in dwarf_str_offsets_value_by_index()
145 if (index >= sot->so_array_entry_count) { in dwarf_str_offsets_value_by_index()
146 _dwarf_error(sot->so_dbg,error, DW_DLE_STR_OFFSETS_ARRAY_INDEX_WRONG); in dwarf_str_offsets_value_by_index()
149 entryptr = sot->so_array_ptr + (index * sot->so_array_entry_size); in dwarf_str_offsets_value_by_index()
150 READ_UNALIGNED_CK(sot->so_dbg, val, Dwarf_Unsigned, in dwarf_str_offsets_value_by_index()
151 entryptr, sot->so_array_entry_size,error,sot->so_end_cu_ptr); in dwarf_str_offsets_value_by_index()
163 find_next_str_offsets_tab(Dwarf_Str_Offsets_Table sot, in find_next_str_offsets_tab() argument
172 word_ptra = word_ptrb = sot->so_section_start_ptr +offset; in find_next_str_offsets_tab()
175 if (word_ptrb >= sot->so_section_end_ptr) { in find_next_str_offsets_tab()
176 sot->so_wasted_section_bytes += (word_ptrb - word_ptra); in find_next_str_offsets_tab()
179 READ_UNALIGNED_CK(sot->so_dbg, one32bit, Dwarf_Unsigned, in find_next_str_offsets_tab()
181 error,sot->so_section_end_ptr); in find_next_str_offsets_tab()
188 sot->so_wasted_section_bytes += (word_ptrb - word_ptra); in find_next_str_offsets_tab()
231 dwarf_next_str_offsets_table(Dwarf_Str_Offsets_Table sot, in dwarf_next_str_offsets_table() argument
252 VALIDATE_SOT(sot) in dwarf_next_str_offsets_table()
254 res = find_next_str_offsets_tab(sot, in dwarf_next_str_offsets_table()
255 sot->so_next_table_offset, in dwarf_next_str_offsets_table()
261 if (table_offset > sot->so_next_table_offset) { in dwarf_next_str_offsets_table()
262 sot->so_wasted_section_bytes += in dwarf_next_str_offsets_table()
263 (table_offset - sot->so_next_table_offset); in dwarf_next_str_offsets_table()
268 if (table_offset > sot->so_next_table_offset) { in dwarf_next_str_offsets_table()
269 sot->so_wasted_section_bytes += in dwarf_next_str_offsets_table()
270 (table_offset - sot->so_next_table_offset); in dwarf_next_str_offsets_table()
272 table_start_ptr = sot->so_section_start_ptr + table_offset; in dwarf_next_str_offsets_table()
273 sot->so_header_ptr = table_start_ptr; in dwarf_next_str_offsets_table()
274 if (table_start_ptr >= sot->so_section_end_ptr) { in dwarf_next_str_offsets_table()
275 if (table_start_ptr == sot->so_section_end_ptr) { in dwarf_next_str_offsets_table()
281 sot->so_section_end_ptr; in dwarf_next_str_offsets_table()
289 _dwarf_error_string(sot->so_dbg,error, in dwarf_next_str_offsets_table()
297 sot->so_section_end_ptr) { in dwarf_next_str_offsets_table()
306 if (is_all_zeroes(table_start_ptr,sot->so_section_end_ptr)){ in dwarf_next_str_offsets_table()
309 len = sot->so_section_end_ptr - in dwarf_next_str_offsets_table()
318 _dwarf_error_string(sot->so_dbg,error, in dwarf_next_str_offsets_table()
324 READ_AREA_LENGTH_CK(sot->so_dbg,length,Dwarf_Unsigned, in dwarf_next_str_offsets_table()
327 sot->so_section_size,sot->so_section_end_ptr); in dwarf_next_str_offsets_table()
341 READ_UNALIGNED_CK(sot->so_dbg, version, Dwarf_Half, in dwarf_next_str_offsets_table()
343 error,sot->so_section_end_ptr); in dwarf_next_str_offsets_table()
345 READ_UNALIGNED_CK(sot->so_dbg, padding, Dwarf_Half, in dwarf_next_str_offsets_table()
347 error,sot->so_section_end_ptr); in dwarf_next_str_offsets_table()
351 _dwarf_error(sot->so_dbg,error, in dwarf_next_str_offsets_table()
366 _dwarf_error(sot->so_dbg,error, in dwarf_next_str_offsets_table()
371 sot->so_next_table_offset = table_end_ptr - in dwarf_next_str_offsets_table()
372 sot->so_section_start_ptr; in dwarf_next_str_offsets_table()
374 sot->so_end_cu_ptr = table_end_ptr; in dwarf_next_str_offsets_table()
375 sot->so_array_ptr = table_start_ptr; in dwarf_next_str_offsets_table()
376 sot->so_table_start_offset = table_offset; in dwarf_next_str_offsets_table()
377 sot->so_array_start_offset = table_start_ptr - in dwarf_next_str_offsets_table()
378 sot->so_section_start_ptr; in dwarf_next_str_offsets_table()
379 sot->so_array_entry_count = entrycount; in dwarf_next_str_offsets_table()
380 sot->so_array_entry_size = local_length_size; in dwarf_next_str_offsets_table()
381 sot->so_table_count += 1; in dwarf_next_str_offsets_table()
388 *unit_length_offset_out = sot->so_table_start_offset; in dwarf_next_str_offsets_table()
391 *table_start_offset_out = sot->so_array_start_offset; in dwarf_next_str_offsets_table()