16#include "omDerivedConfig.h"
22#define MAXPATHLEN 1024
30#ifndef OM_MAX_BACKTRACE_DEPTH
31#define OM_MAX_BACKTRACE_DEPTH 16
63#if defined(HAVE_POPEN) && defined(OM_PROG_ADDR2LINE)
115 else if (fmt[
l] ==
'N')
117 if (*
info[
i].func !=
'\0')
127 else if (fmt[
l] ==
'L')
130 if (n < 20)
fprintf(
fd,
"%*s", 20-n,
" ");
158#ifdef OM_PRINT_RETURN_ADDRESS
171 if (
max <= 0)
return 0;
219#ifdef OM_TRACK_RETURN
223#ifndef OM_INTERNAL_DEBUG
226#ifdef OM_TRACK_RETURN
230#ifdef OM_TRACK_FILE_LINE
236#if defined(OM_TRACK_RETURN) && defined(OM_TRACK_FILE_LINE)
237 if (r !=
NULL &&
info[0].addr == r &&
l > 0 &&
f != 0)
248#ifdef OM_TRACK_FILE_LINE
251#ifdef OM_TRACK_RETURN
255#ifndef OM_INTERNAL_DEBUG
260#ifdef OM_PRINT_RETURN_ADDRESS
static int max(int a, int b)
#define omGetBackTrace(bt, s, max)
int omPrintRetInfo(omRetInfo info, int max, FILE *fd, const char *fmt)
int omBackTrace_2_RetInfo(void **bt, omRetInfo info, int max)
int _omPrintBackTrace(void **bt, int max, FILE *fd, OM_FLR_DECL)
int _omPrintCurrentBackTrace(FILE *fd, OM_FLR_DECL)
static char om_this_prog[MAXPATHLEN]
int omFilterRetInfo_i(omRetInfo info, int max, int i)
int omPrintBackTrace(void **bt, int max, FILE *fd)
#define OM_MAX_BACKTRACE_DEPTH
#define omFilterRetInfo(info, max, cond)
#define omPrintCurrentBackTraceMax(A, B)
#define omInitRet_2_Info(argv0)