Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Arnaldo Carvalho de Melo | 49247345 | 2016-04-05 11:33:41 -0300 | [diff] [blame] | 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 | } |