7#include "omalloc/omConfig.h"
14static void* om_this_main_frame_addr = 0;
18 if (__builtin_frame_address(0) != 0 &&
19 __builtin_frame_address(1) > __builtin_frame_address(0))
20 om_this_main_frame_addr = __builtin_frame_address(1);
23#define OM_GET_BACK_TRACE(j) \
26 f_addr = __builtin_frame_address(j); \
27 if (f_addr > this_frame && f_addr < om_this_main_frame_addr) \
29 r_addr = __builtin_return_address(j); \
34 if (i >= max) break; \
44 void* this_frame = __builtin_frame_address(0);
58#if defined(__x86_64) || defined(__i386)
77 if (
i <
max) bt[
i] = 0;
static int max(int a, int b)
#define omInitGetBackTrace()
#define omGetBackTrace(bt, s, max)