| 440 | } |
| 441 | |
| 442 | void fiber::stackshow(const fiber& fb, size_t max /* = 50 */) |
| 443 | { |
| 444 | std::vector<fiber_frame> stack; |
| 445 | stacktrace(fb, stack, max); |
| 446 | |
| 447 | for (std::vector<fiber_frame>::const_iterator cit = stack.begin(); |
| 448 | cit != stack.end(); ++cit) { |
| 449 | |
| 450 | printf("0x%lx(%s)+0x%lx\r\n", |
| 451 | (*cit).pc, (*cit).func.c_str(), (*cit).off); |
| 452 | } |
| 453 | } |
| 454 | |
| 455 | ////////////////////////////////////////////////////////////////////////////// |
| 456 |
nothing calls this directly
no test coverage detected