Lines Matching refs:start
143 val += section->address + (data - section->start); in get_encoded_value()
624 if (section->start == NULL) in fetch_indirect_string()
634 return (const unsigned char *) section->start + offset; in fetch_indirect_string()
642 if (section->start == NULL) in fetch_indirect_line_string()
652 return (const unsigned char *) section->start + offset; in fetch_indirect_line_string()
666 if (index_section->start == NULL) in fetch_indexed_string()
679 if (str_section->start == NULL) in fetch_indexed_string()
683 str_offset = byte_get (index_section->start + index_offset, offset_size); in fetch_indexed_string()
692 return (const char *) str_section->start + str_offset; in fetch_indexed_string()
700 if (section->start == NULL) in fetch_indexed_value()
710 return dwarf_vmatoa ("x", byte_get (section->start + offset, bytes)); in fetch_indexed_value()
817 process_abbrev_section (unsigned char *start, unsigned char *end) in process_abbrev_section() argument
822 while (start < end) in process_abbrev_section()
830 entry = read_uleb128 (start, & bytes_read, end); in process_abbrev_section()
831 start += bytes_read; in process_abbrev_section()
836 if (start == end) in process_abbrev_section()
839 return start; in process_abbrev_section()
841 tag = read_uleb128 (start, & bytes_read, end); in process_abbrev_section()
842 start += bytes_read; in process_abbrev_section()
843 if (start == end) in process_abbrev_section()
846 children = *start++; in process_abbrev_section()
854 attribute = read_uleb128 (start, & bytes_read, end); in process_abbrev_section()
855 start += bytes_read; in process_abbrev_section()
856 if (start == end) in process_abbrev_section()
859 form = read_uleb128 (start, & bytes_read, end); in process_abbrev_section()
860 start += bytes_read; in process_abbrev_section()
861 if (start == end) in process_abbrev_section()
2150 (unsigned long) (orig_data - section->start)); in read_and_display_attr_value()
2156 abbrev_number = read_uleb128 (section->start + uvalue, NULL, end); in read_and_display_attr_value()
2245 unsigned char *start = section->start; in process_debug_info() local
2246 unsigned char *end = start + section->size; in process_debug_info()
2258 for (section_begin = start, num_units = 0; section_begin < end; in process_debug_info()
2321 if (debug_displays [abbrev_sec].section.start == NULL) in process_debug_info()
2328 for (section_begin = start, unit = 0; start < end; unit++) in process_debug_info()
2344 hdrptr = start; in process_debug_info()
2362 cu_offset = start - section_begin; in process_debug_info()
2468 start += compunit.cu_length + initial_length_size; in process_debug_info()
2489 (((unsigned char *) debug_displays [abbrev_sec].section.start in process_debug_info()
2491 ((unsigned char *) debug_displays [abbrev_sec].section.start in process_debug_info()
2497 while (tags < start) in process_debug_info()
2508 abbrev_number = read_uleb128 (tags, & bytes_read, start); in process_debug_info()
2516 if (level == 0 && start == end) in process_debug_info()
2520 for (chk = tags; chk < start; chk++) in process_debug_info()
2523 if (chk == start) in process_debug_info()
2808 display_directory_table_v4 (unsigned char *start, unsigned char *end, in display_directory_table_v4() argument
2819 (long)(data - start)); in display_directory_table_v4()
2834 display_file_name_table_v4 (unsigned char *start, unsigned char *end, in display_file_name_table_v4() argument
2844 (long)(data - start)); in display_file_name_table_v4()
2880 display_dir_file_table_v5 (unsigned char *start, unsigned char *end, in display_dir_file_table_v5() argument
2917 table_name, (long)(data - start)); in display_dir_file_table_v5()
2989 display_line_program (unsigned char *start, unsigned char *end, in display_line_program() argument
3014 printf (" [0x%08lx]", (long)(data - start)); in display_line_program()
3271 unsigned char *start = section->start; in display_debug_lines_raw() local
3322 printf (_(" Offset: 0x%lx\n"), (long)(data - start)); in display_debug_lines_raw()
3384 display_dir_file_table_v5 (start, end, &data, _("Directory"), in display_debug_lines_raw()
3387 display_directory_table_v4 (start, end, &data); in display_debug_lines_raw()
3398 count = display_dir_file_table_v5 (start, end, &data, in display_debug_lines_raw()
3403 display_file_name_table_v4 (start, end, &data); in display_debug_lines_raw()
3407 display_dir_file_table_v5 (start, end, &data, _("Subprogram"), in display_debug_lines_raw()
3430 display_line_program (start, end_of_logicals, &data, in display_debug_lines_raw()
3439 display_line_program (start, end_of_sequence, &data, in display_debug_lines_raw()
3446 display_line_program (start, end_of_sequence, &data, in display_debug_lines_raw()
3928 unsigned char *data = section->start; in display_debug_lines()
3990 unsigned char *start = section->start; in display_debug_pubnames_worker() local
3991 unsigned char *end = start + section->size; in display_debug_pubnames_worker()
3999 while (start < end) in display_debug_pubnames_worker()
4005 data = start; in display_debug_pubnames_worker()
4031 start += names.pn_length + initial_length_size; in display_debug_pubnames_worker()
4126 unsigned char *start = section->start; in display_debug_macinfo() local
4127 unsigned char *end = start + section->size; in display_debug_macinfo()
4128 unsigned char *curr = start; in display_debug_macinfo()
4215 if (section->start == NULL in get_line_filename_and_dirname()
4220 hdrptr = section->start + line_offset; in get_line_filename_and_dirname()
4221 end = section->start + section->size; in get_line_filename_and_dirname()
4287 unsigned char *start = section->start; in display_debug_macro() local
4288 unsigned char *end = start + section->size; in display_debug_macro()
4289 unsigned char *curr = start; in display_debug_macro()
4303 dwarf_vma line_offset = 0, sec_offset = curr - start, offset; in display_debug_macro()
4546 unsigned char *start = section->start; in display_debug_abbrev() local
4547 unsigned char *end = start + section->size; in display_debug_abbrev()
4557 last = start; in display_debug_abbrev()
4558 start = process_abbrev_section (start, end); in display_debug_abbrev()
4563 printf (_(" Number TAG (0x%lx)\n"), (long) (last - section->start)); in display_debug_abbrev()
4580 while (start); in display_debug_abbrev()
4597 unsigned char *start = *start_ptr; in display_loc_list() local
4598 unsigned char *section_end = section->start + section->size; in display_loc_list()
4618 if (start + 2 * pointer_size > section_end) in display_loc_list()
4625 printf (" %8.8lx ", offset + (start - *start_ptr)); in display_loc_list()
4631 SAFE_BYTE_GET_AND_INC (begin, start, pointer_size, section_end); in display_loc_list()
4632 SAFE_BYTE_GET_AND_INC (end, start, pointer_size, section_end); in display_loc_list()
4650 if (start + 2 > section_end) in display_loc_list()
4657 SAFE_BYTE_GET_AND_INC (length, start, 2, section_end); in display_loc_list()
4659 if (start + length > section_end) in display_loc_list()
4670 need_frame_base = decode_location_expression (start, in display_loc_list()
4688 start += length; in display_loc_list()
4691 *start_ptr = start; in display_loc_list()
4716 unsigned char *start = *start_ptr; in display_loc_list_dwo() local
4717 unsigned char *section_end = section->start + section->size; in display_loc_list_dwo()
4737 printf (" %8.8lx ", offset + (start - *start_ptr)); in display_loc_list_dwo()
4739 if (start >= section_end) in display_loc_list_dwo()
4746 SAFE_BYTE_GET_AND_INC (entry_type, start, 1, section_end); in display_loc_list_dwo()
4750 *start_ptr = start; in display_loc_list_dwo()
4754 idx = read_uleb128 (start, &bytes_read, section_end); in display_loc_list_dwo()
4755 start += bytes_read; in display_loc_list_dwo()
4761 idx = read_uleb128 (start, &bytes_read, section_end); in display_loc_list_dwo()
4762 start += bytes_read; in display_loc_list_dwo()
4764 idx = read_uleb128 (start, &bytes_read, section_end); in display_loc_list_dwo()
4765 start += bytes_read; in display_loc_list_dwo()
4769 idx = read_uleb128 (start, &bytes_read, section_end); in display_loc_list_dwo()
4770 start += bytes_read; in display_loc_list_dwo()
4772 SAFE_BYTE_GET_AND_INC (idx, start, 4, section_end); in display_loc_list_dwo()
4776 SAFE_BYTE_GET_AND_INC (idx, start, 4, section_end); in display_loc_list_dwo()
4778 SAFE_BYTE_GET_AND_INC (idx, start, 4, section_end); in display_loc_list_dwo()
4783 *start_ptr = start; in display_loc_list_dwo()
4787 if (start + 2 > section_end) in display_loc_list_dwo()
4794 SAFE_BYTE_GET_AND_INC (length, start, 2, section_end); in display_loc_list_dwo()
4795 if (start + length > section_end) in display_loc_list_dwo()
4803 need_frame_base = decode_location_expression (start, in display_loc_list_dwo()
4816 start += length; in display_loc_list_dwo()
4819 *start_ptr = start; in display_loc_list_dwo()
4838 unsigned char *start = section->start; in display_debug_loc() local
4840 unsigned char *section_begin = start; in display_debug_loc()
4957 if (start < next) in display_debug_loc()
4959 (unsigned long) (start - section_begin), in display_debug_loc()
4961 else if (start > next) in display_debug_loc()
4963 (unsigned long) (start - section_begin), in display_debug_loc()
4966 start = next; in display_debug_loc()
4976 display_loc_list_dwo (section, &start, i, offset, has_frame_base); in display_debug_loc()
4978 display_loc_list (section, &start, i, offset, base_address, in display_debug_loc()
4983 if (start < section->start + section->size) in display_debug_loc()
4985 (long) (section->start + section->size - start), section->name); in display_debug_loc()
4995 unsigned char *start = section->start; in display_debug_str() local
5020 printf ("%2.2x", start[j]); in display_debug_str()
5030 k = start[j]; in display_debug_str()
5039 start += lbytes; in display_debug_str()
5071 unsigned char *start = section->start; in display_debug_aranges() local
5072 unsigned char *end = start + section->size; in display_debug_aranges()
5080 while (start < end) in display_debug_aranges()
5092 hdrptr = start; in display_debug_aranges()
5160 excess = (hdrptr - start) % (2 * address_size); in display_debug_aranges()
5164 start += arange.ar_length + initial_length_size; in display_debug_aranges()
5166 while (addr_ranges + 2 * address_size <= start) in display_debug_aranges()
5242 entry = section->start + debug_addr_info [i]->addr_base; in display_debug_addr()
5243 end = section->start + debug_addr_info [i + 1]->addr_base; in display_debug_addr()
5305 unsigned char *start = section->start; in display_debug_ranges() local
5306 unsigned char *last_start = start; in display_debug_ranges()
5308 unsigned char *section_begin = start; in display_debug_ranges()
5309 unsigned char *finish = start + bytes; in display_debug_ranges()
5389 if (start < next) in display_debug_ranges()
5391 (unsigned long) (start - section_begin), in display_debug_ranges()
5393 else if (start > next) in display_debug_ranges()
5398 (unsigned long) (start - section_begin), in display_debug_ranges()
5402 start = next; in display_debug_ranges()
5405 while (start < finish) in display_debug_ranges()
5415 SAFE_BYTE_GET_AND_INC (begin, start, pointer_size, finish); in display_debug_ranges()
5416 if (start >= finish) in display_debug_ranges()
5418 SAFE_SIGNED_BYTE_GET_AND_INC (end, start, pointer_size, finish); in display_debug_ranges()
5732 #define GET(VAR, N) SAFE_BYTE_GET_AND_INC (VAR, start, N, end)
5733 #define LEB() read_uleb128 (start, & length_return, end); start += length_return
5734 #define SLEB() read_sleb128 (start, & length_return, end); start += length_return
5737 read_cie (unsigned char *start, unsigned char *end, in read_cie() argument
5749 if (start >= end) in read_cie()
5758 version = *start++; in read_cie()
5760 fc->augmentation = (char *) start; in read_cie()
5763 while (start < end) in read_cie()
5764 if (* start ++ == '\0') in read_cie()
5766 if (start == end) in read_cie()
5769 return start; in read_cie()
5773 start += eh_addr_size; in read_cie()
5800 augmentation_data = start; in read_cie()
5801 start += augmentation_data_len; in read_cie()
5834 return start; in read_cie()
5841 unsigned char *start = section->start; in display_debug_frames() local
5842 unsigned char *end = start + section->size; in display_debug_frames()
5843 unsigned char *section_start = start; in display_debug_frames()
5855 while (start < end) in display_debug_frames()
5870 saved_start = start; in display_debug_frames()
5872 SAFE_BYTE_GET_AND_INC (length, start, 4, end); in display_debug_frames()
5883 SAFE_BYTE_GET_AND_INC (length, start, 8, end); in display_debug_frames()
5894 if (block_end > end || block_end < start) in display_debug_frames()
5902 SAFE_BYTE_GET_AND_INC (cie_id, start, offset_size, end); in display_debug_frames()
5910 start = read_cie (start, end, &cie, &version, in display_debug_frames()
5969 look_for = start - 4 - ((cie_id ^ sign) - sign); in display_debug_frames()
6071 SAFE_BYTE_GET_AND_INC (segment_selector, start, fc->segment_size, end); in display_debug_frames()
6073 fc->pc_begin = get_encoded_value (&start, fc->fde_encoding, section, end); in display_debug_frames()
6079 SAFE_BYTE_GET_AND_INC (fc->pc_range, start, encoded_ptr_size, end); in display_debug_frames()
6084 augmentation_data = start; in display_debug_frames()
6085 start += augmentation_data_len; in display_debug_frames()
6124 unsigned char *tmp = start; in display_debug_frames()
6126 while (start < block_end) in display_debug_frames()
6131 op = *start++; in display_debug_frames()
6152 start += encoded_ptr_size; in display_debug_frames()
6155 start += 1; in display_debug_frames()
6158 start += 2; in display_debug_frames()
6161 start += 4; in display_debug_frames()
6201 if (start + temp < start) in display_debug_frames()
6204 start = block_end; in display_debug_frames()
6207 start += temp; in display_debug_frames()
6213 if (start + temp < start) in display_debug_frames()
6217 start = block_end; in display_debug_frames()
6220 start += temp; in display_debug_frames()
6237 start += 8; in display_debug_frames()
6251 start = tmp; in display_debug_frames()
6257 while (start < block_end) in display_debug_frames()
6266 op = *start++; in display_debug_frames()
6320 vma = get_encoded_value (&start, fc->fde_encoding, section, end); in display_debug_frames()
6330 SAFE_BYTE_GET_AND_INC (ofs, start, 1, end); in display_debug_frames()
6343 SAFE_BYTE_GET_AND_INC (ofs, start, 2, end); in display_debug_frames()
6356 SAFE_BYTE_GET_AND_INC (ofs, start, 4, end); in display_debug_frames()
6535 decode_location_expression (start, eh_addr_size, 0, -1, in display_debug_frames()
6540 start += ul; in display_debug_frames()
6552 decode_location_expression (start, eh_addr_size, 0, -1, in display_debug_frames()
6558 start += ul; in display_debug_frames()
6570 decode_location_expression (start, eh_addr_size, 0, -1, in display_debug_frames()
6576 start += ul; in display_debug_frames()
6629 SAFE_BYTE_GET_AND_INC (ofs, start, 8, end); in display_debug_frames()
6673 start = block_end; in display_debug_frames()
6680 start = block_end; in display_debug_frames()
6697 unsigned char *start = section->start; in display_gdb_index() local
6717 version = byte_get_little_endian (start, 4); in display_gdb_index()
6740 cu_list_offset = byte_get_little_endian (start + 4, 4); in display_gdb_index()
6741 tu_list_offset = byte_get_little_endian (start + 8, 4); in display_gdb_index()
6742 address_table_offset = byte_get_little_endian (start + 12, 4); in display_gdb_index()
6743 symbol_table_offset = byte_get_little_endian (start + 16, 4); in display_gdb_index()
6744 constant_pool_offset = byte_get_little_endian (start + 20, 4); in display_gdb_index()
6761 cu_list = start + cu_list_offset; in display_gdb_index()
6762 tu_list = start + tu_list_offset; in display_gdb_index()
6763 address_table = start + address_table_offset; in display_gdb_index()
6764 symbol_table = start + symbol_table_offset; in display_gdb_index()
6765 constant_pool = start + constant_pool_offset; in display_gdb_index()
6932 unsigned char *phdr = section->start; in process_cu_tu_index()