| 148 | } |
| 149 | |
| 150 | int omPrintBackTrace(void** bt, int max, FILE* fd) |
| 151 | { |
| 152 | int i; |
| 153 | |
| 154 | omRetInfo_t info[OM_MAX_BACKTRACE_DEPTH]; |
| 155 | if (max > OM_MAX_BACKTRACE_DEPTH) max = OM_MAX_BACKTRACE_DEPTH; |
| 156 | |
| 157 | i = omBackTrace_2_RetInfo(bt, info, max); |
| 158 | #ifdef OM_PRINT_RETURN_ADDRESS |
| 159 | return omPrintRetInfo(info, i, fd, " #%i at %L in %N ra=%p\n"); |
| 160 | #else |
| 161 | return omPrintRetInfo(info, i, fd, " #%i at %L in %N\n"); |
| 162 | #endif |
| 163 | } |
| 164 | |
| 165 | int omPrintCurrentBackTraceMax(FILE* fd, int max) |
| 166 | { |
no test coverage detected