test-dwarf_getlocations.c 304 B

12345678910111213
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <stdlib.h>
  3. #include <elfutils/libdw.h>
  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. }