DWARF_ADD_FUNCNAME(3)
hey bestie π welcome to the DWARF_ADD_FUNCNAME(3) page from the Library Functions Manual β this one is all about adding info about a static function to a DWARF producer instance, and yes itβs niche but weβre gonna slay it β¨
π¦ NAME π¦
dwarf_add_funcname β add information about a static function to a DWARF producer instance π
π LIBRARY π
DWARF Access Library (libdwarf, -ldwarf) π«Ά
π§ SYNOPSIS π§
#include <libdwarf.h>
Dwarf_Unsigned
dwarf_add_funcname(Dwarf_P_Debug dbg, Dwarf_P_Die die, char *name,
Dwarf_Error *err);
πΈ DESCRIPTION πΈ
okay so function dwarf_add_funcname() adds information about a static function to a DWARF producer instance β literally its whole job, and it ate π₯
- Argument
dbgshould reference a DWARF producer instance allocated usingdwarf_producer_init(3)ordwarf_producer_init_b(3)π - Argument
diespecifies the debugging information entry associated with the static function π - Argument
nameshould point to a NUL-terminated string containing the name of the static function π - If argument
erris notNULL, it will be used to store error information in case of an error π
β RETURN VALUES β
On success, function dwarf_add_funcname() returns a non-zero value β
In case of an error, function dwarf_add_funcname() returns 0 and sets the argument err π
π ERRORS π
Function dwarf_add_funcname() can fail with:
[DW_DLE_ARGUMENT]β One of the argumentsdbg,dieornamewasNULL.[DW_DLE_MEMORY]β An out of memory condition was encountered during the execution of the function.
π SEE ALSO π
dwarf(3)dwarf_add_pubname(3)dwarf_add_typename(3)dwarf_add_varname(3)dwarf_add_weakname(3)dwarf_new_die(3)dwarf_producer_init(3)dwarf_producer_init_b(3)
okay thatβs the whole page, mwah π
β this cutie is from Debian, dated September 24, 2011, and itβs the DWARF_ADD_FUNCNAME(3) page from the Library Functions Manual. bye 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