From 97f529ab5dad4aae9b1057397de84addcc42cacc Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Thu, 23 Jul 2009 11:53:03 +0200 Subject: Adjust to new elfutils dwarf_frame_cfa interface. * dwflpp.cxx (get_cfa_ops): Call dwarf_frame_cfa with cfa_nops size_t. * loc2c-test.c (main): Likewise. --- loc2c-test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'loc2c-test.c') diff --git a/loc2c-test.c b/loc2c-test.c index 7bfa6938..88e9047c 100644 --- a/loc2c-test.c +++ b/loc2c-test.c @@ -526,6 +526,7 @@ main (int argc, char **argv) else { Dwarf_Op *cfa_ops = NULL; + size_t cfa_nops; #ifdef _ELFUTILS_PREREQ #if _ELFUTILS_PREREQ(0,142) @@ -539,7 +540,7 @@ main (int argc, char **argv) { Dwarf_Frame *frame = NULL; if (dwarf_cfi_addrframe (cfi, pc, &frame) == 0) - dwarf_frame_cfa (frame, &cfa_ops); + dwarf_frame_cfa (frame, &cfa_ops, &cfa_nops); } if (cfa_ops == NULL) { @@ -548,7 +549,7 @@ main (int argc, char **argv) { Dwarf_Frame *frame = NULL; if (dwarf_cfi_addrframe (cfi, pc, &frame) == 0) - dwarf_frame_cfa (frame, &cfa_ops); + dwarf_frame_cfa (frame, &cfa_ops, &cfa_nops); } } } -- cgit