DWARF_LNE_END_SEQUENCE(3)

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

πŸ’– NAME πŸ’–

okay bestie, welcome to the DWARF_LNE_END_SEQUENCE(3) page from the Library Functions Manual β€” and the name is literally the whole assignment: set the end of instruction sequence. periodt. ✨


πŸ¦‹ LIBRARY πŸ¦‹

This one lives in the DWARF Access Library β€” that’s libdwarf, -ldwarf, no cap. 🫢


🌸 SYNOPSIS 🌸

#include <libdwarf.h>

Dwarf_Unsigned
dwarf_lne_end_sequence(Dwarf_P_Debug dbg, Dwarf_Addr addr,
    Dwarf_Error *err);

✨ DESCRIPTION ✨

okay so dwarf_lne_end_sequence() sets the address that marks the end of a sequence of target machine instructions. it’s giving β€œclosing time” energy for an instruction sequence. πŸ’…

Argument dbg should reference a DWARF producer instance allocated using dwarf_producer_init(3) or dwarf_producer_init_b(3). like, that’s the required vibe. πŸŽ€

Argument addr specifies an address value that is the first byte after the end of an instruction sequence. very precise, very demure. πŸ¦‹

If argument err is not NULL, it will be used to store error information in case of an error. bestie, that’s your little error bucket. πŸ“


πŸ”₯ RETURN VALUES πŸ”₯

On success, dwarf_lne_end_sequence() returns DW_DLV_OK. slay. βœ…

In case of an error, dwarf_lne_end_sequence() returns DW_DLV_NOCOUNT and sets the argument err. so if it’s not giving success, check err. 😭


πŸ’€ ERRORS πŸ’€

Function dwarf_lne_end_sequence() can fail with:

  • [DW_DLE_ARGUMENT] β€” Argument dbg was NULL.
  • [DW_DLE_ARGUMENT] β€” The value in argument addr overlapped an existing line information entry.
  • [DW_DLE_MEMORY] β€” An out of memory condition was encountered during the execution of the function.

πŸ‘‘ SEE ALSO πŸ‘‘

go read these too, bestie, iykyk:


πŸ’– Debian, September 15, 2011, DWARF_LNE_END_SEQUENCE(3) β€” source/version + date, signed off with a bow. πŸŽ€

πŸ“¦ where this page comes from