This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

handling DW_OP_call_frame_cfa


Hi,

What would be the plan to handle DW_OP_call_frame_cfa? Should
dwarf_getlocation() just return it (as in the patch below) and let the
caller deal with it through dwarf_getcfi(), dwarf_cfi_addrframe() and
dwarf_frame_cfa()? Or should dwarf_getlocation() be extended to do some
of this magic for the caller?

Thanks,

Mark


diff --git a/libdw/dwarf_getlocation.c b/libdw/dwarf_getlocation.c
index b036883..7f07e16 100644
--- a/libdw/dwarf_getlocation.c
+++ b/libdw/dwarf_getlocation.c
@@ -243,6 +243,7 @@ __libdw_intern_expression (Dwarf *dbg,
        case DW_OP_nop:
        case DW_OP_push_object_address:
        case DW_OP_call_ref:
+       case DW_OP_call_frame_cfa:
          /* No operand.  */
          break;
 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]