dwarf_producer_set_isa(3)

dwarf_producer_set_isa3

Specify the instruction set architecture for a dwarf producer instance

Usage

#include <libdwarf.h>

int

dwarf_producer_set_isa(Dwarf_P_Debug dbg, enum Dwarf_ISA isa, Dwarf_Error *err);

Library

library “libdwarf”

Overview

The function dwarf_producer_set_isa() sets the instruction set architecture for a DWARF producer instance.

Argument dbg should reference a DWARF producer instance allocated using one of the functions dwarf_producer_init(3) or dwarf_producer_init_b(3).

Argument isa specifies the desired instruction set architecture. Legal values for this argument are those defined by the enum Dwarf_ISA enumeration defined in the header file ⟨libdwarf.h⟩.

If the argument err is not NULL, it will be used to store error information in case of an error.

Return values

On success, the function dwarf_producer_set_isa() returns DW_DLV_OK. In case of an error, this function returns DW_DLV_ERROR and sets the argument err.

Compatibility

The dwarf_producer_set_isa() function is a local extension.

Errors

The dwarf_producer_set_isa() function can fail with:

[DW_DLE_ARGUMENT]

The argument dbg was NULL.

[DW_DLE_ARGUMENT]

The argument isa was invalid.

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.