• Home
  • Raw
  • Download

Lines Matching refs:cnt

47   size_t cnt = 0;  in get_offsets()  local
57 if (cnt >= allocated) in get_offsets()
88 mem[cnt].set_start = readp + 2 + 2 * len_bytes - startp; in get_offsets()
89 mem[cnt].address_len = len_bytes; in get_offsets()
91 if (mem[cnt].set_start >= max_size in get_offsets()
92 || len - (2 + 2 * len_bytes) > max_size - mem[cnt].set_start) in get_offsets()
108 &mem[cnt].cu_offset, IDX_debug_info, 3)) in get_offsets()
115 + mem[cnt].cu_offset); in get_offsets()
117 mem[cnt].cu_header_size = 23; in get_offsets()
119 mem[cnt].cu_header_size = 11; in get_offsets()
121 ++cnt; in get_offsets()
127 if (mem == NULL || cnt == 0) in get_offsets()
134 dbg->pubnames_sets = realloc (mem, cnt * entsize); in get_offsets()
135 dbg->pubnames_nsets = cnt; in get_offsets()
167 size_t cnt; in dwarf_getpubnames() local
170 cnt = 0; in dwarf_getpubnames()
175 for (cnt = 0; cnt + 1 < dbg->pubnames_nsets; ++cnt) in dwarf_getpubnames()
176 if ((Dwarf_Off) offset >= dbg->pubnames_sets[cnt].set_start) in dwarf_getpubnames()
179 < dbg->pubnames_sets[cnt + 1].set_start); in dwarf_getpubnames()
182 assert (cnt + 1 < dbg->pubnames_nsets); in dwarf_getpubnames()
194 gl.cu_offset = (dbg->pubnames_sets[cnt].cu_offset in dwarf_getpubnames()
195 + dbg->pubnames_sets[cnt].cu_header_size); in dwarf_getpubnames()
200 if (readp + dbg->pubnames_sets[cnt].address_len > endp) in dwarf_getpubnames()
202 if (dbg->pubnames_sets[cnt].address_len == 4) in dwarf_getpubnames()
212 gl.die_offset += dbg->pubnames_sets[cnt].cu_offset; in dwarf_getpubnames()
233 if (++cnt == dbg->pubnames_nsets) in dwarf_getpubnames()
238 readp = startp + dbg->pubnames_sets[cnt].set_start; in dwarf_getpubnames()