Lines Matching refs:end

172 				  const void *end, signed ptrType);
181 const u8 *end = header_start + header_size; in init_unwind_table() local
193 || (void *)read_pointer(&ptr, end, header_start[1]) != table_start in init_unwind_table()
195 || read_pointer(&ptr, end, header_start[2]) <= 0 in init_unwind_table()
447 static uleb128_t get_uleb128(const u8 **pcur, const u8 *end) in get_uleb128() argument
453 for (shift = 0, value = 0; cur < end; shift += 7) { in get_uleb128()
456 cur = end + 1; in get_uleb128()
468 static sleb128_t get_sleb128(const u8 **pcur, const u8 *end) in get_sleb128() argument
474 for (shift = 0, value = 0; cur < end; shift += 7) { in get_sleb128()
477 cur = end + 1; in get_sleb128()
515 static unsigned long read_pointer(const u8 **pLoc, const void *end, in read_pointer() argument
533 if (end < (const void *)(ptr.p16u + 1)) in read_pointer()
542 if (end < (const void *)(ptr.p32u + 1)) in read_pointer()
555 if (end < (const void *)(ptr.pul + 1)) in read_pointer()
561 value = ptrType & DW_EH_PE_signed ? get_sleb128(&ptr.p8, end) in read_pointer()
562 : get_uleb128(&ptr.p8, end); in read_pointer()
563 if ((const void *)ptr.p8 > end) in read_pointer()
596 const u8 *end = (const u8 *)(cie + 1) + *cie; in fde_pointer_type() local
605 ptr = memchr(aug, 0, end - ptr); in fde_pointer_type()
610 get_uleb128(&ptr, end); /* skip code alignment */ in fde_pointer_type()
611 get_sleb128(&ptr, end); /* skip data alignment */ in fde_pointer_type()
613 version <= 1 ? (void) ++ptr : (void)get_uleb128(&ptr, end); in fde_pointer_type()
614 len = get_uleb128(&ptr, end); /* augmentation length */ in fde_pointer_type()
616 if (ptr + len < ptr || ptr + len > end) in fde_pointer_type()
619 end = ptr + len; in fde_pointer_type()
621 if (ptr >= end) in fde_pointer_type()
630 if (!read_pointer(&ptr, end, ptrType) in fde_pointer_type()
631 || ptr > end) in fde_pointer_type()
685 static int processCFI(const u8 *start, const u8 *end, unsigned long targetLoc, in processCFI() argument
704 for (ptr.p8 = start; result && ptr.p8 < end;) { in processCFI()
716 state->loc = read_pointer(&ptr.p8, end, in processCFI()
724 result = ptr.p8 < end in processCFI()
731 result = ptr.p8 <= end + 2 in processCFI()
737 result = ptr.p8 <= end + 4 in processCFI()
741 value = get_uleb128(&ptr.p8, end); in processCFI()
744 get_uleb128(&ptr.p8, end), state); in processCFI()
747 value = get_uleb128(&ptr.p8, end); in processCFI()
749 get_uleb128(&ptr.p8, end), state); in processCFI()
752 value = get_uleb128(&ptr.p8, end); in processCFI()
754 get_sleb128(&ptr.p8, end), state); in processCFI()
757 value = get_uleb128(&ptr.p8, end); in processCFI()
759 get_sleb128(&ptr.p8, end), state); in processCFI()
767 set_rule(get_uleb128(&ptr.p8, end), Nowhere, 0, in processCFI()
772 value = get_uleb128(&ptr.p8, end); in processCFI()
775 get_uleb128(&ptr.p8, end), state); in processCFI()
801 processCFI(start, end, 0, ptrType, in processCFI()
809 state->cfa.reg = get_uleb128(&ptr.p8, end); in processCFI()
813 state->cfa.offs = get_uleb128(&ptr.p8, end); in processCFI()
818 state->cfa.reg = get_uleb128(&ptr.p8, end); in processCFI()
821 state->cfa.offs = get_sleb128(&ptr.p8, end) in processCFI()
826 state->cfa.reg = get_uleb128(&ptr.p8, end); in processCFI()
832 get_uleb128(&ptr.p8, end); in processCFI()
835 value = get_uleb128(&ptr.p8, end); in processCFI()
839 end), in processCFI()
856 set_rule(value, Memory, get_uleb128(&ptr.p8, end), in processCFI()
865 if (ptr.p8 > end) in processCFI()
871 return result && ptr.p8 == end && (targetLoc == 0 || ( in processCFI()
884 const u8 *ptr = NULL, *end = NULL; in arc_unwind() local
939 end = hdr + table->hdrsz; in arc_unwind()
940 if (tableSize && read_pointer(&ptr, end, hdr[1]) in arc_unwind()
942 && (i = read_pointer(&ptr, end, hdr[2])) > 0 in arc_unwind()
943 && i == (end - ptr) / (2 * tableSize) in arc_unwind()
944 && !((end - ptr) % (2 * tableSize))) { in arc_unwind()
1032 end = (const u8 *)(cie + 1) + *cie; in arc_unwind()
1039 while (++ptr < end && *ptr) { in arc_unwind()
1056 if (ptr >= end || *ptr) in arc_unwind()
1063 state.codeAlign = get_uleb128(&ptr, end); in arc_unwind()
1065 state.dataAlign = get_sleb128(&ptr, end); in arc_unwind()
1066 if (state.codeAlign == 0 || state.dataAlign == 0 || ptr >= end) in arc_unwind()
1071 end); in arc_unwind()
1079 uleb128_t augSize = get_uleb128(&ptr, end); in arc_unwind()
1083 if (ptr > end || retAddrReg >= ARRAY_SIZE(reg_info) in arc_unwind()
1093 state.cieEnd = end; in arc_unwind()
1094 end = (const u8 *)(fde + 1) + *fde; in arc_unwind()
1097 uleb128_t augSize = get_uleb128(&ptr, end); in arc_unwind()
1099 if ((ptr += augSize) > end) in arc_unwind()
1157 if (!processCFI(ptr, end, pc, ptrType, &state) in arc_unwind()