summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-07-23 11:53:03 +0200
committerMark Wielaard <mjw@redhat.com>2009-07-23 11:53:03 +0200
commit97f529ab5dad4aae9b1057397de84addcc42cacc (patch)
tree042d6174a859304726a4512dde73b5e09110e1aa
parent0a9347310bfd77fc3e353a75f5abee242da0f977 (diff)
downloadsystemtap-steved-97f529ab5dad4aae9b1057397de84addcc42cacc.tar.gz
systemtap-steved-97f529ab5dad4aae9b1057397de84addcc42cacc.tar.xz
systemtap-steved-97f529ab5dad4aae9b1057397de84addcc42cacc.zip
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.
-rw-r--r--dwflpp.cxx5
-rw-r--r--loc2c-test.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/dwflpp.cxx b/dwflpp.cxx
index 5fec20e2..427f1d74 100644
--- a/dwflpp.cxx
+++ b/dwflpp.cxx
@@ -2543,6 +2543,7 @@ Dwarf_Op *
dwflpp::get_cfa_ops (Dwarf_Addr pc)
{
Dwarf_Op *cfa_ops = NULL;
+ size_t cfa_nops;
if (sess.verbose > 2)
clog << "get_cfa_ops @0x" << hex << pc << dec
@@ -2559,7 +2560,7 @@ dwflpp::get_cfa_ops (Dwarf_Addr pc)
clog << "got dwarf cfi bias: 0x" << hex << bias << dec << endl;
Dwarf_Frame *frame = NULL;
if (dwarf_cfi_addrframe (cfi, pc - bias, &frame) == 0)
- dwarf_frame_cfa (frame, &cfa_ops);
+ dwarf_frame_cfa (frame, &cfa_ops, &cfa_nops);
else if (sess.verbose > 3)
clog << "dwarf_cfi_addrframe failed: " << dwarf_errmsg(-1) << endl;
}
@@ -2575,7 +2576,7 @@ dwflpp::get_cfa_ops (Dwarf_Addr pc)
clog << "got eh cfi bias: 0x" << hex << bias << dec << endl;
Dwarf_Frame *frame = NULL;
if (dwarf_cfi_addrframe (cfi, pc - bias, &frame) == 0)
- dwarf_frame_cfa (frame, &cfa_ops);
+ dwarf_frame_cfa (frame, &cfa_ops, &cfa_nops);
else if (sess.verbose > 3)
clog << "dwarf_cfi_addrframe failed: " << dwarf_errmsg(-1) << endl;
}
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);
}
}
}