Lines Matching refs:Bp

86 	struct bkpt *Bp;
100 (Bp = create_bkpt(notify.u.bptaddr, 0, 1)) != NULL)
101 Bp->flags |= BPT_TD_CREATE;
113 struct bkpt *Bp;
120 while ((Bp = *Bpp) != NULL) {
121 if (Bp->addr < base || Bp->addr >= base + size) {
122 Bpp = &Bp->next;
125 *Bpp = Bp->next;
126 if (Bp->sym_name)
127 free(Bp->sym_name);
128 free(Bp);
156 struct bkpt *Bp;
160 (Bp = create_bkpt(notify.u.bptaddr, 0, 1)) != NULL)
161 Bp->flags |= BPT_PREINIT;
163 (Bp = create_bkpt(notify.u.bptaddr, 0, 1)) != NULL)
164 Bp->flags |= BPT_POSTINIT;
166 (Bp = create_bkpt(notify.u.bptaddr, 0, 1)) != NULL)
167 Bp->flags |= BPT_DLACTIVITY;
414 struct bkpt *Bp;
416 for (Bp = bpt_hashtable[bpt_hash(pc)]; Bp != NULL; Bp = Bp->next)
417 if (pc == Bp->addr)
420 return (Bp);
433 struct bkpt *Bp;
436 for (Bp = bpt_hashtable[hix]; Bp != NULL; Bp = Bp->next)
437 if (pc == Bp->addr)
438 return (Bp);
454 Bp = my_malloc(sizeof (struct bkpt), NULL);
455 Bp->sym_name = NULL;
456 Bp->dyn = NULL;
457 Bp->addr = pc;
458 Bp->instr = 0;
459 Bp->flags = 0;
460 if (set && Psetbkpt(Proc, Bp->addr, &Bp->instr) == 0)
461 Bp->flags |= BPT_ACTIVE;
462 Bp->next = bpt_hashtable[hix];
463 bpt_hashtable[hix] = Bp;
465 return (Bp);
475 struct bkpt *Bp;
482 for (Bp = bpt_hashtable[i]; Bp != NULL; Bp = Bp->next) {
483 if (!(Bp->flags & BPT_ACTIVE)) {
484 if (!(Bp->flags & BPT_EXCLUDE) &&
485 Psetbkpt(Proc, Bp->addr, &Bp->instr) == 0)
486 Bp->flags |= BPT_ACTIVE;
487 } else if (Paddr_to_text_map(Proc, Bp->addr) == NULL) {
488 Bp->flags &= ~BPT_ACTIVE;
500 struct bkpt *Bp;
542 if ((Bp = create_bkpt(pc, 0, 0)) == NULL) /* can't fail */
550 if (Bp->sym_name == NULL) {
551 Bp->sym_name = strdup(sym_name);
552 } else if (strstr(Bp->sym_name, sym_name) != NULL ||
553 strlen(Bp->sym_name) > strlen(sym_name)) {
554 free(Bp->sym_name);
555 Bp->sym_name = strdup(sym_name);
557 Bp->dyn = Dp;
558 Bp->flags |= Dyp->flag;
560 Bp->flags |= BPT_EXCLUDE;
562 Bp->flags |= BPT_INTERNAL;
575 struct bkpt *Bp;
591 for (Bp = bpt_hashtable[i]; Bp != NULL; Bp = Bp->next)
1067 struct bkpt *Bp;
1086 while ((Bp = bpt_hashtable[i]) != NULL) {
1087 bpt_hashtable[i] = Bp->next;
1088 if (Bp->sym_name)
1089 free(Bp->sym_name);
1090 free(Bp);
1123 struct bkpt *Bp;
1136 for (Bp = bpt_hashtable[i]; Bp != NULL; Bp = Bp->next) {
1137 if (Bp->flags & BPT_ACTIVE)
1138 (void) Pdelbkpt(Proc, Bp->addr, Bp->instr);
1139 Bp->flags &= ~BPT_ACTIVE;
1160 struct bkpt *Bp;
1168 for (Bp = bpt_hashtable[i]; Bp != NULL; Bp = Bp->next) {
1169 if ((Bp->flags & BPT_ACTIVE) &&
1170 Psetbkpt(Proc, Bp->addr, &instr) != 0)
1171 Bp->flags &= ~BPT_ACTIVE;
1178 struct callstack *Stk, struct dynlib *Dp, struct bkpt *Bp)
1194 (void) printf("-> %s%s(", Dp->prt_name, Bp->sym_name);
1209 struct callstack *Stk, struct dynlib *Dp, struct bkpt *Bp)
1220 (void) printf("<- %s%s() = ", Dp->prt_name, Bp->sym_name);
1251 struct bkpt *Bp;
1267 if ((Bp = get_bkpt(pc)) == NULL) {
1276 if ((Bp->flags & (BPT_PREINIT|BPT_POSTINIT|BPT_DLACTIVITY)) && !clear) {
1280 if (Bp->flags & BPT_PREINIT)
1283 if (Bp->flags & BPT_POSTINIT)
1286 if (Bp->flags & BPT_DLACTIVITY)
1358 if ((Bp->flags & BPT_TD_CREATE) && !clear) {
1366 Dp = Bp->dyn;
1373 Bp->sym_name, (unsigned long)1);
1376 show_function_call(pri, NULL, Dp, Bp);
1377 if ((Bp->flags & BPT_HANG) && !first)
1382 function_entry(pri, Bp, Stk);
1383 if ((Bp->flags & BPT_HANG) && !first)
1400 active = (Bp->flags & BPT_ACTIVE);
1401 Bp->flags |= BPT_ACTIVE;
1402 instr = Bp->instr;
1422 if (get_bkpt(pc) != Bp)
1424 (void) Pdelbkpt(Proc, Bp->addr, Bp->instr);
1425 Bp->flags &= ~BPT_ACTIVE;
1432 if (get_bkpt(pc) != Bp)
1434 if (!active || !(Bp->flags & BPT_ACTIVE)) {
1435 (void) Pdelbkpt(Proc, Bp->addr, Bp->instr);
1436 Bp->flags &= ~BPT_ACTIVE;
1443 function_entry(private_t *pri, struct bkpt *Bp, struct callstack *Stk)
1448 struct dynlib *Dp = Bp->dyn;
1465 (!(Bp->flags & BPT_INTERNAL) &&
1488 Stk->stack[Stk->ncall].fcn = Bp;
1492 add_fcall(fcall_tbl, Dp->prt_name, Bp->sym_name,
1495 show_function_call(pri, Stk, Dp, Bp);
1564 struct bkpt *Bp;
1611 if ((Bp = get_bkpt(pc)) == NULL || (Dp = Bp->dyn) == NULL)
1614 if (!(Bp->flags & BPT_INTERNAL) &&
1625 Stk->stack[Stk->ncall].fcn = Bp;
1780 struct bkpt *Bp;
1788 if ((Bp = get_bkpt(pc)) != NULL && (Bp->flags & BPT_ACTIVE))
1789 instr[0] = (uchar_t)Bp->instr;