This is Unofficial EPICS BASE Doxygen Site
osdBackTrace.cpp File Reference
#include <windows.h>
#include "epicsStackTracePvt.h"
+ Include dependency graph for osdBackTrace.cpp:

Go to the source code of this file.

Functions

int epicsBackTrace (void **buf, int buf_sz)
 

Function Documentation

int epicsBackTrace ( void **  buf,
int  buf_sz 
)

Definition at line 14 of file osdBackTrace.cpp.

15 {
16 #ifdef CaptureStackBackTrace
17  /* Docs say that (for some windows versions) the sum of
18  * skipped + captured frames must be less than 63
19  */
20  if ( buf_sz >= 63 )
21  buf_sz = 62;
22  return CaptureStackBackTrace(0, buf_sz, buf, 0);
23 #else
24  /* Older versions of MinGW */
25  return -1;
26 #endif
27 }
void ** buf