DWARF_EXPR_CURRENT_OFFSET(3)
β¨ 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]β ArgumentexprwasNULL.
bestie. ifexprisNULL, she will absolutely clock it and return that error. no cap. π
π SEE ALSO π
dwarf(3)dwarf_add_expr_addr(3)dwarf_add_expr_addr_b(3)dwarf_add_expr_gen(3)dwarf_expr_into_block(3)dwarf_new_expr(3)
mwah π this iconic little page comes from Debian, dated September 13, 2011 β DWARF_EXPR_CURRENT_OFFSET(3) forever, bestie. π«Άβ¨π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: libdwarf 15.0.0
- Copyright (c) 2011 Kai Wang
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms