Lines Matching refs:ndx
64 * ndx - Address of variable giving index to start byte in data.
70 * *ndx is incremented by the size of the extracted datum.
76 dwarf_extract_uint(uchar_t *data, size_t len, uint64_t *ndx, int size,
79 if (((*ndx + size) > len) ||
80 ((*ndx + size) < *ndx))
85 *ret = (data[(*ndx)++]);
92 data += *ndx;
98 (*ndx) += 2;
107 data += *ndx;
113 (*ndx) += 4;
123 data += *ndx;
129 (*ndx) += 8;
189 * ndx - Index of current position within current FDE
198 * *ndx has been incremented to contain the index of the next
206 dump_cfi(uchar_t *data, uint64_t off, uint64_t *ndx, uint_t len,
253 while (*ndx < len) {
265 op = data[off + (*ndx)++];
277 if (uleb_extract(&data[off], ndx, len, &oper1) ==
309 (*ndx < len) && (data[off + *ndx] == 0);
310 i++, (*ndx)++)
322 switch (dwarf_ehe_extract(&data[off], len, ndx,
324 state->sh_addr, off + *ndx, state->gotaddr)) {
353 ndx, i, state->do_swap, &oper1)) {
376 if (uleb_extract(&data[off], ndx, len, &oper1) ==
384 if (sleb_extract(&data[off], ndx, len, &soper) ==
401 if (uleb_extract(&data[off], ndx, len, &oper1) ==
415 if (uleb_extract(&data[off], ndx, len, &oper1) ==
423 if (uleb_extract(&data[off], ndx, len, &oper2) ==
435 if (uleb_extract(&data[off], ndx, len, &oper1) ==
443 if (uleb_extract(&data[off], ndx, len, &oper2) ==
455 if (uleb_extract(&data[off], ndx, len, &oper1) ==
467 if (uleb_extract(&data[off], ndx, len, &oper1) ==
477 *ndx += oper1;
482 if (uleb_extract(&data[off], ndx, len, &oper1) ==
490 if (uleb_extract(&data[off], ndx, len, &oper2) ==
500 *ndx += oper2;
504 if (uleb_extract(&data[off], ndx, len, &oper1) ==
512 if (sleb_extract(&data[off], ndx, len, &soper) ==
526 if (uleb_extract(&data[off], ndx, len, &oper1) ==
534 if (sleb_extract(&data[off], ndx, len, &soper) ==
548 if (sleb_extract(&data[off], ndx, len, &soper) ==
562 if (uleb_extract(&data[off], ndx, len, &oper1) ==
570 if (sleb_extract(&data[off], ndx, len, &soper) ==
584 if (uleb_extract(&data[off], ndx, len, &oper1) ==
592 if (sleb_extract(&data[off], ndx, len, &soper) ==
607 ndx, 8, state->do_swap, &oper1)) {
630 if (uleb_extract(&data[off], ndx, len, &oper1) ==
644 if (uleb_extract(&data[off], ndx, len, &oper1) ==
652 if (sleb_extract(&data[off], ndx, len, &soper) ==
672 (*ndx)--; /* Back up to unrecognized opcode */
673 dump_hex_bytes(data + off + *ndx, len - *ndx,
675 (*ndx) = len;
691 uint64_t off, ndx, length, id;
709 ndx = 0;
722 &ndx, 4, cfi_state.do_swap, &length) == DW_OVERFLOW) {
749 if (dwarf_extract_uint(data + off, datasize - off, &ndx,
777 cieversion = data[off + ndx];
778 ndx += 1;
779 cieaugstr = (char *)(&data[off + ndx]);
780 ndx += strlen(cieaugstr) + 1;
785 if (uleb_extract(&data[off], &ndx, datasize - off,
793 if (sleb_extract(&data[off], &ndx, datasize - off,
800 cieretaddr = data[off + ndx];
801 ndx += 1;
813 if (uleb_extract(&data[off], &ndx,
829 * axsize, we will use it to set ndx to
833 ndx_save = ndx;
836 ciePflag = data[off + ndx];
837 ndx += 1;
840 datasize - off, &ndx, &persVal,
842 off + ndx, gotaddr)) {
867 cfi_state.cieRflag = data[off + ndx];
868 ndx += 1;
877 cieLflag = data[off + ndx];
878 ndx += 1;
893 * If the z flag was present, reposition ndx using the
898 ndx = ndx_save + axsize;
903 if ((cielength + 4) > ndx)
904 dump_cfi(data, off, &ndx, cielength, &cfi_state,
925 &ndx, &cfi_state.fdeinitloc, cfi_state.cieRflag,
926 e_ident, B_FALSE, sh_addr, off + ndx, gotaddr)) {
941 &ndx, &fdeaddrrange,
943 B_FALSE, sh_addr, off + ndx, gotaddr)) {
968 if (uleb_extract(&data[off], &ndx,
975 lndx = ndx;
976 ndx += val;
1004 if ((fdelength + 4) > ndx)
1005 dump_cfi(data, off, &ndx, fdelength, &cfi_state,