Function
dwarf_hasattr()
tests whether the debugging information entry referenced in argument
die
contains the attribute named by argument
attr.
Legal values for argument
attr
are those denoted by the
DW_AT_*
constants in the DWARF specification.
If the named attribute is present in the debugging information entry,
function
dwarf_hasattr()
returns a non-zero value in the location pointed to by argument
ret_bool.
If the named attribute is not present, a zero is written instead.
If argument
err
is not NULL, it will be used to return an error descriptor in case
of an error.