MCPcopy Create free account
hub / github.com/Singular/Singular / omPrintBackTrace

Function omPrintBackTrace

omalloc/omRet2Info.c:150–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150int 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
165int omPrintCurrentBackTraceMax(FILE* fd, int max)
166{

Callers 1

Calls 2

omBackTrace_2_RetInfoFunction · 0.85
omPrintRetInfoFunction · 0.85

Tested by

no test coverage detected