DWARF_GET_AT_NAME(3)
π NAME π
okay so bestie, this is DWARF_GET_AT_NAME(3) β from the Library Functions Manual, hi β and it's the page for the functions that retrieve the symbolic names of DWARF constants. The whole squad is: dwarf_get_ACCESS_name, dwarf_get_AT_name, dwarf_get_ATE_name, dwarf_get_CC_name, dwarf_get_CFA_name, dwarf_get_CHILDREN_name, dwarf_get_DS_name, dwarf_get_DSC_name, dwarf_get_EH_name, dwarf_get_END_name, dwarf_get_FORM_name, dwarf_get_ID_name, dwarf_get_INL_name, dwarf_get_LANG_name, dwarf_get_LNE_name, dwarf_get_LNS_name, dwarf_get_MACINFO_name, dwarf_get_OP_name, dwarf_get_ORD_name, dwarf_get_TAG_name, dwarf_get_UT_name, dwarf_get_VIRTUALITY_name, and dwarf_get_VIS_name. periodt.
π LIBRARY π
DWARF Access Library (libdwarf, -ldwarf) β iconic.
β¨ SYNOPSIS β¨
#include <libdwarf.h>
int
dwarf_get_ACCESS_name(unsigned val, char **str);
int
dwarf_get_AT_name(unsigned val, char **str);
int
dwarf_get_ATE_name(unsigned val, char **str);
int
dwarf_get_CC_name(unsigned val, char **str);
int
dwarf_get_CFA_name(unsigned val, char **str);
int
dwarf_get_CHILDREN_name(unsigned val, char **str);
int
dwarf_get_DS_name(unsigned val, char **str);
int
dwarf_get_DSC_name(unsigned val, char **str);
int
dwarf_get_EH_name(unsigned val, char **str);
int
dwarf_get_END_name(unsigned val, char **str);
int
dwarf_get_FORM_name(unsigned val, char **str);
int
dwarf_get_ID_name(unsigned val, char **str);
int
dwarf_get_INL_name(unsigned val, char **str);
int
dwarf_get_LANG_name(unsigned val, char **str);
int
dwarf_get_LNE_name(unsigned val, char **str);
int
dwarf_get_LNS_name(unsigned val, char **str);
int
dwarf_get_MACINFO_name(unsigned val, char **str);
int
dwarf_get_OP_name(unsigned val, char **str);
int
dwarf_get_ORD_name(unsigned val, char **str);
int
dwarf_get_TAG_name(unsigned val, char **str);
int
dwarf_get_UT_name(unsigned unit_type, const char **str);
int
dwarf_get_VIRTUALITY_name(unsigned val, char **str);
int
dwarf_get_VIS_name(unsigned val, char **str);
π¦ DESCRIPTION π¦
These functions return the symbolic name of a numeric DWARF constant. Like, numeric value in, symbolic name out β yes ma'am.
Argument val specifies the numeric value whose symbolic name is desired.
Argument str should point to a location which will hold the returned NUL-terminated string containing the symbolic name of the specified value.
tiny vibe check: str is where that returned NUL-terminated string is gonna land, so it should point to a location that can hold it. no cap.
The list of functions and the DWARF constants that they accept are:
dwarf_get_ACCESS_name()βDW_ACCESS_*constants.dwarf_get_AT_name()βDW_AT_*constants.dwarf_get_ATE_name()βDW_ATE_*constants.dwarf_get_CC_name()βDW_CC_*constants.dwarf_get_CFA_name()βDW_CFA_*constants.dwarf_get_CHILDREN_name()βDW_CHILDREN_*constants.dwarf_get_DS_name()βDW_DS_*constants.dwarf_get_DSC_name()βDW_DSC_*constants.dwarf_get_EH_name()βDW_EH_PE_*constants.dwarf_get_END_name()βDW_END_*constants.dwarf_get_FORM_name()βDW_FORM_*constants.dwarf_get_ID_name()βDW_ID_*constants.dwarf_get_INL_name()βDW_INL_*constants.dwarf_get_LANG_name()βDW_LANG_*constants.dwarf_get_LNE_name()βDW_LNE_*constants.dwarf_get_LNS_name()βDW_LNS_*constants.dwarf_get_MACINFO_name()βDW_MACINFO_*constants.dwarf_get_OP_name()βDW_OP_*constants.dwarf_get_ORD_name()βDW_ORD_*constants.dwarf_get_TAG_name()βDW_TAG_*constants.dwarf_get_UT_name()βDW_UT_*constants.dwarf_get_VIRTUALITY_name()βDW_VIRTUALITY_*constants.dwarf_get_VIS_name()βDW_VIS_*constants.
π₯ RETURN VALUES π₯
These functions return DW_DLV_OK on success. If the DWARF constant denoted by argument val is not recognized, these functions return DW_DLV_NO_ENTRY. That's the whole return-value story, bestie.
π SEE ALSO π
source/version: Debian β’ date: January 30, 2023 β’ page: DWARF_GET_AT_NAME(3) β mwah, 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