Lines Matching refs:stab
56 * stab is defined, but is defined as something that doesn't exist yet.
146 * got from the N_FUN stab and add (fnarg_add) the ones from the N_PSYM stabs.
173 * Read the stabs from the stab ELF section, and turn them into a tdesc tree,
181 stab_t *stab;
193 if (!((stabidx = findelfsecidx(elf, file, ".stab.excl")) >= 0 &&
194 (stabstridx = findelfsecidx(elf, file, ".stab.exclstr")) >= 0) &&
195 !((stabidx = findelfsecidx(elf, file, ".stab")) >= 0 &&
214 stab = &((stab_t *)data->d_buf)[i];
217 if (stab->n_type == N_LBRAC) {
219 debug(3, "stab %d: opening scope (%d)\n", i + 1, scope);
221 } else if (stab->n_type == N_RBRAC) {
223 debug(3, "stab %d: closing scope (%d)\n", i + 1, scope);
225 } else if (stab->n_type == N_EINCL) {
242 if (!(stab->n_type == N_FUN || stab->n_type == N_GSYM ||
243 stab->n_type == N_LCSYM || stab->n_type == N_LSYM ||
244 stab->n_type == N_PSYM || stab->n_type == N_ROSYM ||
245 stab->n_type == N_RSYM ||
246 stab->n_type == N_STSYM || stab->n_type == N_BINCL ||
247 stab->n_type == N_SO || stab->n_type == N_OPT))
251 (size_t)stab->n_strx)) == NULL) {
252 terminate("%s: Can't find string at %u for stab %d\n",
253 file, stab->n_strx, i);
256 if (stab->n_type == N_BINCL) {
260 } else if (stab->n_type == N_SO) {
266 } else if (stab->n_type == N_OPT) {
291 fstr, stab->n_type, 0, stab->n_desc,
292 stab->n_value, curhdr);
298 * Sometimes the compiler stutters, and emits the same stab
304 debug(3, "Stutter stab\n");
316 if ((rc = parse_stab(stab, fstr, &iidescp)) < 0) {
317 terminate("%s: Couldn't parse stab \"%s\" "
325 assert(stab->n_type != N_FUN || (iidescp->ii_type != II_GFUN &&
332 if (scope && stab->n_type != N_PSYM) {
362 aborterr("invalid ii_type %d for stab type %d",
363 iidescp->ii_type, stab->n_type);