This is Unofficial EPICS BASE Doxygen Site
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
osdExecinfoBackTrace.cpp
Go to the documentation of this file.
1
/*
2
* Copyright: Stanford University / SLAC National Laboratory.
3
*
4
* EPICS BASE is distributed subject to a Software License Agreement found
5
* in file LICENSE that is included with this distribution.
6
*
7
* Author: Till Straumann <strauman@slac.stanford.edu>, 2011, 2014
8
*/
9
10
// pull in libc feature test macros
11
#include <stdlib.h>
12
13
// execinfo.h may not be present if uclibc is configured to omit backtrace()
14
#if !defined(__UCLIBC_MAJOR__) || defined(__UCLIBC_HAS_EXECINFO__)
15
# define HAS_EXECINFO 1
16
#else
17
# define HAS_EXECINFO 0
18
#endif
19
20
#if HAS_EXECINFO
21
22
#include <execinfo.h>
23
24
#endif
25
26
#include "
epicsStackTracePvt.h
"
27
28
int
epicsBackTrace
(
void
**buf,
int
buf_sz)
29
{
30
#if HAS_EXECINFO
31
return
backtrace(buf, buf_sz);
32
#else
33
return
-1;
34
#endif
35
}
epicsStackTracePvt.h
epicsBackTrace
int epicsBackTrace(void **buf, int buf_sz)
Definition:
osdExecinfoBackTrace.cpp:28
modules
libcom
src
osi
os
posix
osdExecinfoBackTrace.cpp
Generated by
1.8.11