|
NAMEdwarf_loclist_from_expr ,
dwarf_loclist_from_expr_a ,
dwarf_loclist_from_expr_b —
translate DWARF location expression bytes
LIBRARYDWARF Access Library (libdwarf, -ldwarf)SYNOPSIS#include <libdwarf.h>
int
int
int
DESCRIPTIONFunctiondwarf_loclist_from_expr () translates DWARF
location expression bytes into a Dwarf_Locdesc
descriptor. The size for address related data is taken to be the default
address size for the object being read.
Argument dbg should reference a DWARF debug context allocated using dwarf_init(3). Argument bytes_in should point to an array of DWARF location expression bytes. Argument bytes_len should specify the number of the location expression bytes to be translated. Argument llbuf should point to a location which will be set to a pointer to a returned Dwarf_Locdesc descriptor. Argument listlen should point to a location which will hold the number of the Dwarf_Locdesc descriptors returned. In this case it is always set to 1. If argument err is not NULL, it will be used to store error information in case of an error. Function Function Memory ManagementThe memory area used for the descriptor returned in argument llbuf is allocated by DWARF Access Library (libdwarf, -ldwarf). When the descriptor is no longer needed, application code should use function dwarf_dealloc(3) to free the memory area in two steps:
RETURN VALUESOn success, these functions returnsDW_DLV_OK . In case
of an error, they return DW_DLV_ERROR and set the
argument err.
ERRORSThese functions may fail with the following errors:
SEE ALSOdwarf(3), dwarf_dealloc(3), dwarf_get_fde_info_for_all_regs3(3), dwarf_get_fde_info_for_cfa_reg3(3), dwarf_get_fde_info_for_reg3(3), dwarf_get_loclist_entry(3), dwarf_loclist_n(3)
Visit the GSP FreeBSD Man Page Interface. |