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;
Show replies by date