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

Function _omPrintCurrentBackTrace

omalloc/omRet2Info.c:270–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270int _omPrintCurrentBackTrace(FILE* fd , OM_FLR_DECL)
271{
272#ifdef __OPTIMIZE__
273 /* does not work without -g */
274 return 0;
275#else
276 int i;
277 void* bt[OM_MAX_BACKTRACE_DEPTH];
278
279 i = omGetBackTrace(bt, 1, OM_MAX_BACKTRACE_DEPTH);
280 return _omPrintBackTrace(bt, i, fd , OM_FLR_VAL);
281#endif
282}
283#endif /* ! OM_NDEBUG */

Callers 1

omReportErrorFunction · 0.85

Calls 2

omGetBackTraceFunction · 0.85
_omPrintBackTraceFunction · 0.85

Tested by

no test coverage detected