DWARF_EXPR_CURRENT_OFFSET(3)

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

✨ NAME ✨

okay so bestie, welcome to DWARF_EXPR_CURRENT_OFFSET(3) from the Library Functions Manual β€” yes, the title is a whole mouthful, but stay with me. This page is about dwarf_expr_current_offset β€” retrieve the number of bytes in a location expression stream. It’s giving byte-count realness, no cap. πŸ’…

🫢 LIBRARY 🫢

DWARF Access Library (libdwarf, -ldwarf) β€” that’s where she lives, okay?

🌸 SYNOPSIS 🌸

#include <libdwarf.h>

Dwarf_Unsigned
dwarf_expr_current_offset(Dwarf_P_Expr expr, Dwarf_Error *err);

πŸ’– DESCRIPTION πŸ’–

Function dwarf_expr_current_offset() returns the size in bytes of the stream representation of a location expression. Literally just the byte count, bestie β€” she’s not doing extra. periodt.

Argument expr should reference a location expression descriptor allocated using dwarf_new_expr(3). So like, make sure it’s a valid descriptor, okay? 🫢

If argument err is not NULL, it will be used to store error information in case of an error. Very β€œif you have a spot for the drama, she’ll put the drama there” energy. 😭

πŸ¦‹ RETURN VALUES πŸ¦‹

On success, function dwarf_expr_current_offset() returns the size in bytes of the location descriptor’s stream representation. In case of an error, function dwarf_expr_current_offset() returns DW_DLV_NOCOUNT and sets the argument err. That’s the whole vibe check. ✨

πŸŽ€ ERRORS πŸŽ€

Function dwarf_expr_current_offset() can fail with:

  • [DW_DLE_ARGUMENT] β€” Argument expr was NULL.
bestie. if expr is NULL, she will absolutely clock it and return that error. no cap. πŸ’€

🌈 SEE ALSO 🌈


mwah πŸ’‹ this iconic little page comes from Debian, dated September 13, 2011 β€” DWARF_EXPR_CURRENT_OFFSET(3) forever, bestie. πŸ«Άβœ¨πŸŽ€

πŸ“¦ where this page comes from