DWARF_ADD_AT_COMP_DIR(3)
π DWARF_ADD_AT_COMP_DIR(3) π
okay bestie, this is the DWARF_ADD_AT_COMP_DIR(3) page from the Library Functions Manual, and itβs honestly giving βtiny function, very important jobβ energy π
β¨
πΈ NAME πΈ
dwarf_add_AT_comp_dir β create and attach a DW_AT_comp_dir attribute π
π LIBRARY π
Itβs the DWARF Access Library (libdwarf, -ldwarf) β yes, thatβs the library situation, no cap π«Ά
β SYNOPSIS β
#include <libdwarf.h>
Dwarf_P_Attribute
dwarf_add_AT_comp_dir(Dwarf_P_Die die, char *dir, Dwarf_Error *err);
π¦ DESCRIPTION π¦
Function dwarf_add_AT_comp_dir() creates a DW_AT_comp_dir attribute descriptor and attaches it to the debugging information entry referenced by argument die. The created attribute will have DWARF form DW_FORM_strp. β¨
Argument die should reference a debugging information entry allocated using dwarf_new_die(3). π
Argument dir should point to a NUL-terminated string which will become the value of the created attribute. π
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_AT_comp_dir() returns the created attribute descriptor. ππ In case of an error, function dwarf_add_AT_comp_dir() returns DW_DLV_BADADDR and sets the argument err. π«Ά
π₯ ERRORS π₯
Function dwarf_add_AT_comp_dir() can fail with:
[DW_DLE_ARGUMENT]β either of the argumentsdieordirwasNULL.[DW_DLE_MEMORY]β an out of memory condition was encountered during the execution of the function.
π§ SEE ALSO π§
Go peek at these besties, iykyk:
dwarf(3)dwarf_add_AT_const_value_string(3)dwarf_add_AT_name(3)dwarf_add_AT_producer(3)dwarf_add_AT_string(3)dwarf_new_die(3)
later, bestie β this cutie is from the Debian edition, dated September 4, 2011 πππ«Ά
π¦ 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