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