Lines Matching defs:pc
215 dis_generic_previnstr(dis_handle_t *dhp, uint64_t pc, int n)
219 uint64_t res = pc;
222 return (pc);
224 if (dhp->dh_lookup(dhp->dh_data, pc, NULL, 0, &start, NULL) != 0 ||
225 start == pc)
230 for (cur = 0, nseen = 0, addr = start; addr < pc; addr = dhp->dh_addr) {
240 if (addr != pc) {
242 * We scanned past %pc, but didn't find an instruction that
243 * started at %pc. This means that either the caller specified
264 dis_previnstr(dis_handle_t *dhp, uint64_t pc, int n)
267 return (dis_generic_previnstr(dhp, pc, n));
269 return (dhp->dh_arch->da_previnstr(dhp, pc, n));
285 dis_generic_instrlen(dis_handle_t *dhp, uint64_t pc)
287 if (dis_disassemble(dhp, pc, NULL, 0) != 0)
290 return (dhp->dh_addr - pc);
294 dis_instrlen(dis_handle_t *dhp, uint64_t pc)
297 return (dis_generic_instrlen(dhp, pc));
299 return (dhp->dh_arch->da_instrlen(dhp, pc));