DWARF_ADD_FUNCNAME(3)

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

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 dbg should reference a DWARF producer instance allocated using dwarf_producer_init(3) or dwarf_producer_init_b(3) πŸ’–
  • Argument die specifies the debugging information entry associated with the static function πŸ‘‘
  • Argument name should point to a NUL-terminated string containing the name of the static function πŸŽ€
  • If argument err is not NULL, 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 arguments dbg, die or name was NULL.
  • [DW_DLE_MEMORY] β€” An out of memory condition was encountered during the execution of the function.

🌈 SEE ALSO 🌈


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