| 109 | } |
| 110 | |
| 111 | void |
| 112 | stack_print_short(const struct stack *st) |
| 113 | { |
| 114 | char namebuf[64]; |
| 115 | long offset; |
| 116 | int i; |
| 117 | |
| 118 | KASSERT(st->depth <= STACK_MAX, ("bogus stack")); |
| 119 | for (i = 0; i < st->depth; i++) { |
| 120 | if (i > 0) |
| 121 | printf(" "); |
| 122 | if (stack_symbol(st->pcs[i], namebuf, sizeof(namebuf), |
| 123 | &offset, M_WAITOK) == 0) |
| 124 | printf("%s+%#lx", namebuf, offset); |
| 125 | else |
| 126 | printf("%p", (void *)st->pcs[i]); |
| 127 | } |
| 128 | printf("\n"); |
| 129 | } |
| 130 | |
| 131 | void |
| 132 | stack_print_ddb(const struct stack *st) |
nothing calls this directly
no test coverage detected