repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
mm, oom: do not rely on TIF_MEMDIE for memory reserves access
[linux/fpc-iii.git]
/
tools
/
build
/
feature
/
test-backtrace.c
blob
7124aa1dc8fb77d5fe1adae0cc4a0dcaff2ff3a3
1
#include <execinfo.h>
2
#include <stdio.h>
3
4
int
main
(
void
)
5
{
6
void
*
backtrace_fns
[
10
];
7
size_t
entries
;
8
9
entries
=
backtrace
(
backtrace_fns
,
10
);
10
backtrace_symbols_fd
(
backtrace_fns
,
entries
,
1
);
11
12
return
0
;
13
}