DWARF_PRODUCER_SET_ISA(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

🌸 NAME 🌸

Okay bestie, welcome to DWARF_PRODUCER_SET_ISA(3) β€” this one lives in the Library Functions Manual πŸ’–

dwarf_producer_set_isa β€” specify the instruction set architecture for a DWARF producer instance ✨


πŸ¦‹ LIBRARY πŸ¦‹

DWARF Access Library (libdwarf, -ldwarf) 🫢


πŸ’– SYNOPSIS πŸ’–

#include <libdwarf.h>

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

✨ DESCRIPTION ✨

So like, dwarf_producer_set_isa() sets the instruction set architecture for a DWARF producer instance. That's the whole vibe πŸ’…

The argument dbg should reference a DWARF producer instance allocated using one of the functions dwarf_producer_init(3) or dwarf_producer_init_b(3) β€” no random dbg, bestie, it's gotta come from one of those πŸ‘‘

The 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. So if something goes sideways, err is where the tea gets spilled 😭


πŸŽ€ 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. That's the note, periodt 🫢


πŸ’€ 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.

πŸ‘‘ SEE ALSO πŸ‘‘

dwarf(3), dwarf_producer_init(3), dwarf_producer_init_b(3) 🌟


xoxo, Debian πŸ’– September 29, 2011 🌸 DWARF_PRODUCER_SET_ISA(3)

πŸ“¦ where this page comes from