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-dwarf_getlocations.c
blob
70162699dd4345032ed8dd388b52ecbbc322f184
1
#include <stdlib.h>
2
#include <elfutils/libdw.h>
3
4
int
main
(
void
)
5
{
6
Dwarf_Addr base
,
start
,
end
;
7
Dwarf_Attribute attr
;
8
Dwarf_Op
*
op
;
9
size_t
nops
;
10
ptrdiff_t
offset
=
0
;
11
return
(
int
)
dwarf_getlocations
(&
attr
,
offset
, &
base
, &
start
, &
end
, &
op
, &
nops
);
12
}