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
Linux 5.7.7
[linux/fpc-iii.git]
/
tools
/
build
/
feature
/
test-backtrace.c
blob
e9ddd27c69c35ecdd8c12197aabb7d62ab9ffa40
1
// SPDX-License-Identifier: GPL-2.0
2
#include <execinfo.h>
3
#include <stdio.h>
4
5
int
main
(
void
)
6
{
7
void
*
backtrace_fns
[
10
];
8
size_t
entries
;
9
10
entries
=
backtrace
(
backtrace_fns
,
10
);
11
backtrace_symbols_fd
(
backtrace_fns
,
entries
,
1
);
12
13
return
0
;
14
}