DWARF_ADD_TYPENAME(3)
Hey bestie! Welcome to dwarf_add_typename(3) from the Library Functions Manual π this one is lowkey iconic for producer vibes.
β¨ NAME β¨
dwarf_add_typename β adds information about a user-defined type to a DWARF producer instance. periodt.
π LIBRARY π
DWARF Access Library (libdwarf, -ldwarf) π«Ά
πΈ SYNOPSIS πΈ
#include <libdwarf.h>
Dwarf_Unsigned
dwarf_add_typename(Dwarf_P_Debug dbg, Dwarf_P_Die die, char *name,
Dwarf_Error *err);
π¦ DESCRIPTION π¦
okay so function dwarf_add_typename() adds information about a user-defined type to a DWARF producer instance. no cap, thatβs the whole vibe π
dbgβ should reference a DWARF producer instance allocated usingdwarf_producer_init(3)ordwarf_producer_init_b(3)β¨dieβ specifies the debugging information entry associated with the user-defined type πnameβ should point to aNUL-terminatedstring containing the name of the user-defined type π¦errβ if argumenterris notNULL, it will be used to store error information in case of an error πΈ
π RETURN VALUES π
On success, function dwarf_add_typename() returns a non-zero value. In case of an error, function dwarf_add_typename() returns 0 and sets the argument err π
π ERRORS π
Function dwarf_add_typename() 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.
bestie, those are the only listed failure modes β donβt invent extra ones, iykyk π
π SEE ALSO π
dwarf(3), dwarf_add_funcname(3), dwarf_add_pubname(3), dwarf_add_varname(3), dwarf_add_weakname(3), dwarf_new_die(3), dwarf_producer_init(3), dwarf_producer_init_b(3) π
This page is from Debian, dated September 24, 2011, and its page tag is DWARF_ADD_TYPENAME(3) β mwah π
π¦ 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