Lines Matching refs:readp
4584 unsigned char **readp, unsigned char *endp) in skip_listptr_hole() argument
4595 || p->offset >= (Dwarf_Off) (endp - *readp + offset)) in skip_listptr_hole()
4597 *readp = endp; in skip_listptr_hole()
4605 *readp += p->offset - offset; in skip_listptr_hole()
4789 const unsigned char *readp = data->d_buf; in print_debug_aranges_section() local
4790 const unsigned char *readendp = readp + data->d_size; in print_debug_aranges_section()
4792 while (readp < readendp) in print_debug_aranges_section()
4794 const unsigned char *hdrstart = readp; in print_debug_aranges_section()
4798 if (readp + 4 > readendp) in print_debug_aranges_section()
4806 Dwarf_Word length = read_4ubyte_unaligned_inc (dbg, readp); in print_debug_aranges_section()
4810 if (readp + 8 > readendp) in print_debug_aranges_section()
4812 length = read_8ubyte_unaligned_inc (dbg, readp); in print_debug_aranges_section()
4816 const unsigned char *nexthdr = readp + length; in print_debug_aranges_section()
4820 if (unlikely (length > (size_t) (readendp - readp))) in print_debug_aranges_section()
4826 if (readp + 2 > readendp) in print_debug_aranges_section()
4828 uint_fast16_t version = read_2ubyte_unaligned_inc (dbg, readp); in print_debug_aranges_section()
4838 if (readp + length_bytes > readendp) in print_debug_aranges_section()
4841 offset = read_8ubyte_unaligned_inc (dbg, readp); in print_debug_aranges_section()
4843 offset = read_4ubyte_unaligned_inc (dbg, readp); in print_debug_aranges_section()
4847 if (readp + 1 > readendp) in print_debug_aranges_section()
4849 unsigned int address_size = *readp++; in print_debug_aranges_section()
4858 unsigned int segment_size = *readp++; in print_debug_aranges_section()
4868 readp += ((2 * address_size - ((readp - hdrstart) % (2 * address_size))) in print_debug_aranges_section()
4871 while (readp < nexthdr) in print_debug_aranges_section()
4876 if (readp + 2 * address_size + segment_size > readendp) in print_debug_aranges_section()
4880 range_address = read_4ubyte_unaligned_inc (dbg, readp); in print_debug_aranges_section()
4881 range_length = read_4ubyte_unaligned_inc (dbg, readp); in print_debug_aranges_section()
4885 range_address = read_8ubyte_unaligned_inc (dbg, readp); in print_debug_aranges_section()
4886 range_length = read_8ubyte_unaligned_inc (dbg, readp); in print_debug_aranges_section()
4890 segment = read_4ubyte_unaligned_inc (dbg, readp); in print_debug_aranges_section()
4892 segment = read_8ubyte_unaligned_inc (dbg, readp); in print_debug_aranges_section()
4912 if (readp != nexthdr) in print_debug_aranges_section()
4914 size_t padding = nexthdr - readp; in print_debug_aranges_section()
4916 readp = nexthdr; in print_debug_aranges_section()
4951 unsigned char *readp = data->d_buf; in print_debug_ranges_section() local
4952 while (readp < endp) in print_debug_ranges_section()
4954 ptrdiff_t offset = readp - (unsigned char *) data->d_buf; in print_debug_ranges_section()
4958 offset, &readp, endp)) in print_debug_ranges_section()
4971 begin = read_8ubyte_unaligned_inc (dbg, readp); in print_debug_ranges_section()
4972 end = read_8ubyte_unaligned_inc (dbg, readp); in print_debug_ranges_section()
4976 begin = read_4ubyte_unaligned_inc (dbg, readp); in print_debug_ranges_section()
4977 end = read_4ubyte_unaligned_inc (dbg, readp); in print_debug_ranges_section()
5048 print_cfa_program (const unsigned char *readp, const unsigned char *const endp, in print_cfa_program() argument
5063 while (readp < endp) in print_cfa_program()
5065 unsigned int opcode = *readp++; in print_cfa_program()
5080 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5082 get_uleb128 (op1, readp, endp); in print_cfa_program()
5087 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5090 *readp, pc += *readp * code_align); in print_cfa_program()
5091 ++readp; in print_cfa_program()
5094 if ((uint64_t) (endp - readp) < 2) in print_cfa_program()
5096 op1 = read_2ubyte_unaligned_inc (dbg, readp); in print_cfa_program()
5101 if ((uint64_t) (endp - readp) < 4) in print_cfa_program()
5103 op1 = read_4ubyte_unaligned_inc (dbg, readp); in print_cfa_program()
5108 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5110 get_uleb128 (op1, readp, endp); in print_cfa_program()
5111 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5113 get_uleb128 (op2, readp, endp); in print_cfa_program()
5119 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5121 get_uleb128 (op1, readp, endp); in print_cfa_program()
5126 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5128 get_uleb128 (op1, readp, endp); in print_cfa_program()
5132 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5134 get_uleb128 (op1, readp, endp); in print_cfa_program()
5138 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5140 get_uleb128 (op1, readp, endp); in print_cfa_program()
5141 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5143 get_uleb128 (op2, readp, endp); in print_cfa_program()
5154 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5156 get_uleb128 (op1, readp, endp); in print_cfa_program()
5157 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5159 get_uleb128 (op2, readp, endp); in print_cfa_program()
5164 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5166 get_uleb128 (op1, readp, endp); in print_cfa_program()
5171 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5173 get_uleb128 (op1, readp, endp); in print_cfa_program()
5177 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5179 get_uleb128 (op1, readp, endp); /* Length of DW_FORM_block. */ in print_cfa_program()
5181 if ((uint64_t) (endp - readp) < op1) in print_cfa_program()
5188 op1, readp); in print_cfa_program()
5189 readp += op1; in print_cfa_program()
5192 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5194 get_uleb128 (op1, readp, endp); in print_cfa_program()
5195 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5197 get_uleb128 (op2, readp, endp); /* Length of DW_FORM_block. */ in print_cfa_program()
5200 if ((uint64_t) (endp - readp) < op2) in print_cfa_program()
5203 op2, readp); in print_cfa_program()
5204 readp += op2; in print_cfa_program()
5207 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5209 get_uleb128 (op1, readp, endp); in print_cfa_program()
5210 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5212 get_sleb128 (sop2, readp, endp); in print_cfa_program()
5218 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5220 get_uleb128 (op1, readp, endp); in print_cfa_program()
5221 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5223 get_sleb128 (sop2, readp, endp); in print_cfa_program()
5228 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5230 get_sleb128 (sop1, readp, endp); in print_cfa_program()
5234 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5236 get_uleb128 (op1, readp, endp); in print_cfa_program()
5237 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5239 get_uleb128 (op2, readp, endp); in print_cfa_program()
5244 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5246 get_uleb128 (op1, readp, endp); in print_cfa_program()
5247 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5249 get_sleb128 (sop2, readp, endp); in print_cfa_program()
5254 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5256 get_uleb128 (op1, readp, endp); in print_cfa_program()
5257 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5259 get_uleb128 (op2, readp, endp); /* Length of DW_FORM_block. */ in print_cfa_program()
5262 if ((uint64_t) (endp - readp) < op2) in print_cfa_program()
5265 NULL, op2, readp); in print_cfa_program()
5266 readp += op2; in print_cfa_program()
5269 if ((uint64_t) (endp - readp) < 8) in print_cfa_program()
5271 op1 = read_8ubyte_unaligned_inc (dbg, readp); in print_cfa_program()
5279 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5281 get_uleb128 (op1, readp, endp); in print_cfa_program()
5294 if ((uint64_t) (endp - readp) < 1) in print_cfa_program()
5296 get_uleb128 (offset, readp, endp); in print_cfa_program()
5425 read_encoded (unsigned int encoding, const unsigned char *readp, in read_encoded() argument
5435 get_uleb128 (*res, readp, endp); in read_encoded()
5438 get_sleb128 (*res, readp, endp); in read_encoded()
5441 if (readp + 2 > endp) in read_encoded()
5443 *res = read_2ubyte_unaligned_inc (dbg, readp); in read_encoded()
5446 if (readp + 4 > endp) in read_encoded()
5448 *res = read_4ubyte_unaligned_inc (dbg, readp); in read_encoded()
5451 if (readp + 8 > endp) in read_encoded()
5453 *res = read_8ubyte_unaligned_inc (dbg, readp); in read_encoded()
5456 if (readp + 2 > endp) in read_encoded()
5458 *res = read_2sbyte_unaligned_inc (dbg, readp); in read_encoded()
5461 if (readp + 4 > endp) in read_encoded()
5463 *res = read_4sbyte_unaligned_inc (dbg, readp); in read_encoded()
5466 if (readp + 8 > endp) in read_encoded()
5468 *res = read_8sbyte_unaligned_inc (dbg, readp); in read_encoded()
5476 return readp; in read_encoded()
5530 const unsigned char *readp = data->d_buf; in print_debug_frame_section() local
5533 while (readp < dataend) in print_debug_frame_section()
5535 if (unlikely (readp + 4 > dataend)) in print_debug_frame_section()
5545 ptrdiff_t offset = readp - (unsigned char *) data->d_buf; in print_debug_frame_section()
5547 Dwarf_Word unit_length = read_4ubyte_unaligned_inc (dbg, readp); in print_debug_frame_section()
5551 if (unlikely (readp + 8 > dataend)) in print_debug_frame_section()
5554 unit_length = read_8ubyte_unaligned_inc (dbg, readp); in print_debug_frame_section()
5564 Dwarf_Word maxsize = dataend - readp; in print_debug_frame_section()
5570 ptrdiff_t start = readp - (unsigned char *) data->d_buf; in print_debug_frame_section()
5571 const unsigned char *const cieend = readp + unit_length; in print_debug_frame_section()
5572 if (unlikely (cieend > dataend || readp + 8 > dataend)) in print_debug_frame_section()
5578 cie_id = read_4ubyte_unaligned_inc (dbg, readp); in print_debug_frame_section()
5583 cie_id = read_8ubyte_unaligned_inc (dbg, readp); in print_debug_frame_section()
5595 version = *readp++; in print_debug_frame_section()
5596 const char *const augmentation = (const char *) readp; in print_debug_frame_section()
5597 readp = memchr (readp, '\0', cieend - readp); in print_debug_frame_section()
5598 if (unlikely (readp == NULL)) in print_debug_frame_section()
5600 ++readp; in print_debug_frame_section()
5605 if (cieend - readp < 5) in print_debug_frame_section()
5607 ptr_size = *readp++; in print_debug_frame_section()
5608 segment_size = *readp++; in print_debug_frame_section()
5611 if (cieend - readp < 1) in print_debug_frame_section()
5613 get_uleb128 (code_alignment_factor, readp, cieend); in print_debug_frame_section()
5614 if (cieend - readp < 1) in print_debug_frame_section()
5616 get_sleb128 (data_alignment_factor, readp, cieend); in print_debug_frame_section()
5620 readp += ehdr->e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8; in print_debug_frame_section()
5623 if (cieend - readp < 1) in print_debug_frame_section()
5626 return_address_register = *readp++; in print_debug_frame_section()
5628 get_uleb128 (return_address_register, readp, cieend); in print_debug_frame_section()
5649 get_uleb128 (augmentationlen, readp, cieend); in print_debug_frame_section()
5651 if (augmentationlen > (size_t) (cieend - readp)) in print_debug_frame_section()
5654 readp = cieend; in print_debug_frame_section()
5662 printf (" %-26s%#x ", hdr, *readp); in print_debug_frame_section()
5667 fde_encoding = *readp++; in print_debug_frame_section()
5673 lsda_encoding = *readp++; in print_debug_frame_section()
5681 const unsigned char *startp = readp; in print_debug_frame_section()
5682 unsigned int encoding = *readp++; in print_debug_frame_section()
5684 readp = read_encoded (encoding, readp, in print_debug_frame_section()
5685 readp - 1 + augmentationlen, in print_debug_frame_section()
5688 while (++startp < readp) in print_debug_frame_section()
5707 printf ("(%x)\n", *readp++); in print_debug_frame_section()
5750 const unsigned char *base = readp; in print_debug_frame_section()
5752 initial_location = read_addr_unaligned_inc (ptr_size, dbg, readp); in print_debug_frame_section()
5754 = read_addr_unaligned_inc (ptr_size, dbg, readp); in print_debug_frame_section()
5802 if (cieend - readp < 1) in print_debug_frame_section()
5804 get_uleb128 (augmentationlen, readp, cieend); in print_debug_frame_section()
5806 if (augmentationlen > (size_t) (cieend - readp)) in print_debug_frame_section()
5809 readp = cieend; in print_debug_frame_section()
5825 = read_encoded (lsda_encoding, &readp[u], in print_debug_frame_section()
5826 &readp[augmentationlen], in print_debug_frame_section()
5828 u = p - readp; in print_debug_frame_section()
5839 printf (" %-26s%#x\n", hdr, readp[u++]); in print_debug_frame_section()
5844 readp += augmentationlen; in print_debug_frame_section()
5852 print_cfa_program (readp, cieend, vma_base, code_alignment_factor, in print_debug_frame_section()
5855 readp = cieend; in print_debug_frame_section()
7014 unsigned char *readp = data->d_buf; in print_debug_loc_section() local
7016 while (readp < endp) in print_debug_loc_section()
7018 ptrdiff_t offset = readp - (unsigned char *) data->d_buf; in print_debug_loc_section()
7022 &cu, offset, &readp, endp)) in print_debug_loc_section()
7035 begin = read_8ubyte_unaligned_inc (dbg, readp); in print_debug_loc_section()
7036 end = read_8ubyte_unaligned_inc (dbg, readp); in print_debug_loc_section()
7040 begin = read_4ubyte_unaligned_inc (dbg, readp); in print_debug_loc_section()
7041 end = read_4ubyte_unaligned_inc (dbg, readp); in print_debug_loc_section()
7062 uint_fast16_t len = read_2ubyte_unaligned_inc (dbg, readp); in print_debug_loc_section()
7077 if (endp - readp <= (ptrdiff_t) len) in print_debug_loc_section()
7084 3 /*XXX*/, address_size, offset_size, cu, len, readp); in print_debug_loc_section()
7087 readp += len; in print_debug_loc_section()
7185 const unsigned char *readp = (const unsigned char *) data->d_buf; in print_debug_macinfo_section() local
7186 const unsigned char *readendp = readp + data->d_size; in print_debug_macinfo_section()
7189 while (readp < readendp) in print_debug_macinfo_section()
7191 unsigned int opcode = *readp++; in print_debug_macinfo_section()
7206 get_uleb128 (u128, readp, readendp); in print_debug_macinfo_section()
7208 endp = memchr (readp, '\0', readendp - readp); in print_debug_macinfo_section()
7219 level, "", (char *) readp, u128); in print_debug_macinfo_section()
7222 level, "", (char *) readp, u128); in print_debug_macinfo_section()
7224 printf (" #vendor-ext %s, number %u\n", (char *) readp, u128); in print_debug_macinfo_section()
7226 readp = endp + 1; in print_debug_macinfo_section()
7231 get_uleb128 (u128, readp, readendp); in print_debug_macinfo_section()
7232 if (readendp - readp < 1) in print_debug_macinfo_section()
7239 get_uleb128 (u128_2, readp, readendp); in print_debug_macinfo_section()
7242 size_t macoff = readp - (const unsigned char *) data->d_buf; in print_debug_macinfo_section()
7271 if (unlikely (opcode != 0 || readp != readendp)) in print_debug_macinfo_section()
7329 const unsigned char *readp = (const unsigned char *) data->d_buf; in print_debug_macro_section() local
7330 const unsigned char *readendp = readp + data->d_size; in print_debug_macro_section()
7332 while (readp < readendp) in print_debug_macro_section()
7335 (uint64_t) (readp - (const unsigned char *) data->d_buf)); in print_debug_macro_section()
7339 if (readp + 2 > readendp) in print_debug_macro_section()
7345 const uint16_t vers = read_2ubyte_unaligned_inc (dbg, readp); in print_debug_macro_section()
7356 if (readp + 1 > readendp) in print_debug_macro_section()
7358 const unsigned char flag = *readp++; in print_debug_macro_section()
7367 line_offset = read_8ubyte_unaligned_inc (dbg, readp); in print_debug_macro_section()
7369 line_offset = read_4ubyte_unaligned_inc (dbg, readp); in print_debug_macro_section()
7380 if (readp + 1 > readendp) in print_debug_macro_section()
7382 unsigned int tlen = *readp++; in print_debug_macro_section()
7387 if (readp + 1 > readendp) in print_debug_macro_section()
7389 unsigned int opcode = *readp++; in print_debug_macro_section()
7396 vendor[opcode - DW_MACRO_GNU_lo_user] = readp; in print_debug_macro_section()
7397 if (readp + 1 > readendp) in print_debug_macro_section()
7399 unsigned int args = *readp++; in print_debug_macro_section()
7405 if (readp + 1 > readendp) in print_debug_macro_section()
7407 unsigned int form = *readp++; in print_debug_macro_section()
7437 if (readp + 1 > readendp) in print_debug_macro_section()
7439 unsigned int opcode = *readp++; in print_debug_macro_section()
7450 get_uleb128 (u128, readp, readendp); in print_debug_macro_section()
7451 if (readp >= readendp) in print_debug_macro_section()
7453 get_uleb128 (u128_2, readp, readendp); in print_debug_macro_section()
7485 get_uleb128 (u128, readp, readendp); in print_debug_macro_section()
7486 endp = memchr (readp, '\0', readendp - readp); in print_debug_macro_section()
7490 level, "", readp, u128); in print_debug_macro_section()
7491 readp = endp + 1; in print_debug_macro_section()
7495 get_uleb128 (u128, readp, readendp); in print_debug_macro_section()
7496 endp = memchr (readp, '\0', readendp - readp); in print_debug_macro_section()
7500 level, "", readp, u128); in print_debug_macro_section()
7501 readp = endp + 1; in print_debug_macro_section()
7505 get_uleb128 (u128, readp, readendp); in print_debug_macro_section()
7506 if (readp + offset_len > readendp) in print_debug_macro_section()
7509 off = read_8ubyte_unaligned_inc (dbg, readp); in print_debug_macro_section()
7511 off = read_4ubyte_unaligned_inc (dbg, readp); in print_debug_macro_section()
7517 get_uleb128 (u128, readp, readendp); in print_debug_macro_section()
7518 if (readp + offset_len > readendp) in print_debug_macro_section()
7521 off = read_8ubyte_unaligned_inc (dbg, readp); in print_debug_macro_section()
7523 off = read_4ubyte_unaligned_inc (dbg, readp); in print_debug_macro_section()
7529 if (readp + offset_len > readendp) in print_debug_macro_section()
7532 off = read_8ubyte_unaligned_inc (dbg, readp); in print_debug_macro_section()
7534 off = read_4ubyte_unaligned_inc (dbg, readp); in print_debug_macro_section()
7559 if (readp + 1 > readendp) in print_debug_macro_section()
7561 val = *readp++; in print_debug_macro_section()
7566 if (readp + 2 > readendp) in print_debug_macro_section()
7568 val = read_2ubyte_unaligned_inc (dbg, readp); in print_debug_macro_section()
7573 if (readp + 4 > readendp) in print_debug_macro_section()
7575 val = read_4ubyte_unaligned_inc (dbg, readp); in print_debug_macro_section()
7580 if (readp + 8 > readendp) in print_debug_macro_section()
7582 val = read_8ubyte_unaligned_inc (dbg, readp); in print_debug_macro_section()
7587 get_sleb128 (val, readp, readendp); in print_debug_macro_section()
7592 get_uleb128 (val, readp, readendp); in print_debug_macro_section()
7597 get_uleb128 (val, readp, readendp); in print_debug_macro_section()
7599 if (readp + val > readendp) in print_debug_macro_section()
7601 readp += val; in print_debug_macro_section()
7605 if (readp + 1 > readendp) in print_debug_macro_section()
7607 val = *readp++; in print_debug_macro_section()
7609 if (readp + val > readendp) in print_debug_macro_section()
7614 if (readp + 2 > readendp) in print_debug_macro_section()
7616 val = read_2ubyte_unaligned_inc (dbg, readp); in print_debug_macro_section()
7618 if (readp + val > readendp) in print_debug_macro_section()
7623 if (readp + 2 > readendp) in print_debug_macro_section()
7625 val =read_4ubyte_unaligned_inc (dbg, readp); in print_debug_macro_section()
7627 if (readp + val > readendp) in print_debug_macro_section()
7632 if (readp + 1 > readendp) in print_debug_macro_section()
7634 val = *readp++; in print_debug_macro_section()
7639 endp = memchr (readp, '\0', readendp - readp); in print_debug_macro_section()
7642 printf (" %s", readp); in print_debug_macro_section()
7643 readp = endp + 1; in print_debug_macro_section()
7647 if (readp + offset_len > readendp) in print_debug_macro_section()
7650 val = read_8ubyte_unaligned_inc (dbg, readp); in print_debug_macro_section()
7652 val = read_4ubyte_unaligned_inc (dbg, readp); in print_debug_macro_section()
7657 if (readp + offset_len > readendp) in print_debug_macro_section()
7660 val = read_8ubyte_unaligned_inc (dbg, readp); in print_debug_macro_section()
7662 val = read_4ubyte_unaligned_inc (dbg, readp); in print_debug_macro_section()
7678 if (readp + 1 > readendp) in print_debug_macro_section()
7680 opcode = *readp++; in print_debug_macro_section()
7783 const unsigned char *readp = data->d_buf; in print_debug_frame_hdr_section() local
7787 if (unlikely (readp + 4 > dataend)) in print_debug_frame_hdr_section()
7794 unsigned int version = *readp++; in print_debug_frame_hdr_section()
7795 unsigned int eh_frame_ptr_enc = *readp++; in print_debug_frame_hdr_section()
7796 unsigned int fde_count_enc = *readp++; in print_debug_frame_hdr_section()
7797 unsigned int table_enc = *readp++; in print_debug_frame_hdr_section()
7811 readp = read_encoded (eh_frame_ptr_enc, readp, dataend, &eh_frame_ptr, in print_debug_frame_hdr_section()
7813 if (unlikely (readp == NULL)) in print_debug_frame_hdr_section()
7828 readp = read_encoded (fde_count_enc, readp, dataend, &fde_count, dbg); in print_debug_frame_hdr_section()
7829 if (unlikely (readp == NULL)) in print_debug_frame_hdr_section()
7842 while (fde_count > 0 && readp + 8 <= dataend) in print_debug_frame_hdr_section()
7844 int32_t initial_location = read_4sbyte_unaligned_inc (dbg, readp); in print_debug_frame_hdr_section()
7847 int32_t address = read_4sbyte_unaligned_inc (dbg, readp); in print_debug_frame_hdr_section()
7855 while (0 && readp < dataend) in print_debug_frame_hdr_section()
7885 const unsigned char *readp = data->d_buf; in print_debug_exception_table() local
7886 const unsigned char *const dataend = readp + data->d_size; in print_debug_exception_table()
7888 if (unlikely (readp + 1 > dataend)) in print_debug_exception_table()
7894 unsigned int lpstart_encoding = *readp++; in print_debug_exception_table()
7900 readp = read_encoded (lpstart_encoding, readp, dataend, &lpstart, dbg); in print_debug_exception_table()
7904 if (unlikely (readp + 1 > dataend)) in print_debug_exception_table()
7906 unsigned int ttype_encoding = *readp++; in print_debug_exception_table()
7913 get_uleb128 (ttype_base_offset, readp, dataend); in print_debug_exception_table()
7915 if ((size_t) (dataend - readp) > ttype_base_offset) in print_debug_exception_table()
7916 ttype_base = readp + ttype_base_offset; in print_debug_exception_table()
7919 if (unlikely (readp + 1 > dataend)) in print_debug_exception_table()
7921 unsigned int call_site_encoding = *readp++; in print_debug_exception_table()
7925 get_uleb128 (call_site_table_len, readp, dataend); in print_debug_exception_table()
7927 const unsigned char *const action_table = readp + call_site_table_len; in print_debug_exception_table()
7932 while (readp < action_table) in print_debug_exception_table()
7938 readp = read_encoded (call_site_encoding, readp, dataend, in print_debug_exception_table()
7941 readp = read_encoded (call_site_encoding, readp, dataend, in print_debug_exception_table()
7944 readp = read_encoded (call_site_encoding, readp, dataend, in print_debug_exception_table()
7947 get_uleb128 (action, readp, dataend); in print_debug_exception_table()
7955 if (readp != action_table) in print_debug_exception_table()
7978 get_sleb128 (ar_filter, readp, action_table_end); in print_debug_exception_table()
7982 if (readp >= action_table_end) in print_debug_exception_table()
7984 get_sleb128 (ar_disp, readp, action_table_end); in print_debug_exception_table()
7997 while (readp < action_table_end); in print_debug_exception_table()
8029 readp = ttype_base - max_ar_filter * dsize; in print_debug_exception_table()
8033 readp = read_encoded (ttype_encoding, readp, ttype_base, &ttype, in print_debug_exception_table()
8037 while (readp < ttype_base); in print_debug_exception_table()
8066 const unsigned char *readp = data->d_buf; in print_gdb_index_section() local
8067 const unsigned char *const dataend = readp + data->d_size; in print_gdb_index_section()
8069 if (unlikely (readp + 4 > dataend)) in print_gdb_index_section()
8076 int32_t vers = read_4ubyte_unaligned (dbg, readp); in print_gdb_index_section()
8090 readp += 4; in print_gdb_index_section()
8091 if (unlikely (readp + 4 > dataend)) in print_gdb_index_section()
8094 uint32_t cu_off = read_4ubyte_unaligned (dbg, readp); in print_gdb_index_section()
8097 readp += 4; in print_gdb_index_section()
8098 if (unlikely (readp + 4 > dataend)) in print_gdb_index_section()
8101 uint32_t tu_off = read_4ubyte_unaligned (dbg, readp); in print_gdb_index_section()
8104 readp += 4; in print_gdb_index_section()
8105 if (unlikely (readp + 4 > dataend)) in print_gdb_index_section()
8108 uint32_t addr_off = read_4ubyte_unaligned (dbg, readp); in print_gdb_index_section()
8111 readp += 4; in print_gdb_index_section()
8112 if (unlikely (readp + 4 > dataend)) in print_gdb_index_section()
8115 uint32_t sym_off = read_4ubyte_unaligned (dbg, readp); in print_gdb_index_section()
8118 readp += 4; in print_gdb_index_section()
8119 if (unlikely (readp + 4 > dataend)) in print_gdb_index_section()
8122 uint32_t const_off = read_4ubyte_unaligned (dbg, readp); in print_gdb_index_section()
8129 readp = data->d_buf + cu_off; in print_gdb_index_section()
8135 size_t cu_nr = (nextp - readp) / 16; in print_gdb_index_section()
8142 while (dataend - readp >= 16 && n < cu_nr) in print_gdb_index_section()
8144 uint64_t off = read_8ubyte_unaligned (dbg, readp); in print_gdb_index_section()
8145 readp += 8; in print_gdb_index_section()
8147 uint64_t len = read_8ubyte_unaligned (dbg, readp); in print_gdb_index_section()
8148 readp += 8; in print_gdb_index_section()
8155 readp = data->d_buf + tu_off; in print_gdb_index_section()
8160 size_t tu_nr = (nextp - readp) / 24; in print_gdb_index_section()
8167 while (dataend - readp >= 24 && n < tu_nr) in print_gdb_index_section()
8169 uint64_t off = read_8ubyte_unaligned (dbg, readp); in print_gdb_index_section()
8170 readp += 8; in print_gdb_index_section()
8172 uint64_t type = read_8ubyte_unaligned (dbg, readp); in print_gdb_index_section()
8173 readp += 8; in print_gdb_index_section()
8175 uint64_t sig = read_8ubyte_unaligned (dbg, readp); in print_gdb_index_section()
8176 readp += 8; in print_gdb_index_section()
8184 readp = data->d_buf + addr_off; in print_gdb_index_section()
8189 size_t addr_nr = (nextp - readp) / 20; in print_gdb_index_section()
8196 while (dataend - readp >= 20 && n < addr_nr) in print_gdb_index_section()
8198 uint64_t low = read_8ubyte_unaligned (dbg, readp); in print_gdb_index_section()
8199 readp += 8; in print_gdb_index_section()
8201 uint64_t high = read_8ubyte_unaligned (dbg, readp); in print_gdb_index_section()
8202 readp += 8; in print_gdb_index_section()
8204 uint32_t idx = read_4ubyte_unaligned (dbg, readp); in print_gdb_index_section()
8205 readp += 4; in print_gdb_index_section()
8220 readp = data->d_buf + sym_off; in print_gdb_index_section()
8222 size_t sym_nr = (nextp - readp) / 8; in print_gdb_index_section()
8229 while (dataend - readp >= 8 && n < sym_nr) in print_gdb_index_section()
8231 uint32_t name = read_4ubyte_unaligned (dbg, readp); in print_gdb_index_section()
8232 readp += 4; in print_gdb_index_section()
8234 uint32_t vector = read_4ubyte_unaligned (dbg, readp); in print_gdb_index_section()
8235 readp += 4; in print_gdb_index_section()