dwarf_attroffset(3)

dwarf_attroffset3

Retrieve the section-relative offset of an attribute descriptor

Usage

#include <libdwarf.h>

int

dwarf_attroffset(Dwarf_Attribute at, Dwarf_Off *ret_off, Dwarf_Error *err);

Library

library “libdwarf”

Overview

Function dwarf_attroffset() retrieves the section-relative offset of the attribute descriptor referenced by argument at.

Argument ret_off should point to a location that is to hold the returned section-relative offset. If argument err is non-NULL, it is used to return an error descriptor in case of an error.

Return values

On success, function dwarf_attroffset() returns DW_DLV_OK.

In case of an error, it returns DW_DLV_ERROR and sets argument err.

Compatibility

This function is an extension to the DWARF(3) API.

Errors

The dwarf_attroffset() function may fail with the following errors:

[DW_DLE_ARGUMENT]

Either of the arguments at or ret_off was NULL.

Releases

25 releases since FreeBSD 11.0-RELEASE; the text changed 1 time.

  1. 11.0–12.0
  2. 12.1–16.0

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.