| 804 | } |
| 805 | |
| 806 | void StackTrace::Print() const { |
| 807 | // NOTE: This code MUST be async-signal safe (it's used by in-process |
| 808 | // stack dumping signal handler). NO malloc or stdio is allowed here. |
| 809 | |
| 810 | #if !defined(__UCLIBC__) |
| 811 | PrintBacktraceOutputHandler handler; |
| 812 | ProcessBacktrace(trace_, count_, &handler); |
| 813 | #endif |
| 814 | } |
| 815 | |
| 816 | #if !defined(__UCLIBC__) |
| 817 | void StackTrace::OutputToStream(std::ostream* os) const { |
no test coverage detected