DWARF_GET_CIE_INFO(3)
πΈ NAME πΈ
okay so bestie, this is DWARF_GET_CIE_INFO(3) from the Library Functions Manual, and it's highkey serving pure CIE-descriptor info retrieval. The function is dwarf_get_cie_info β retrieve information associated with a CIE descriptor. β¨
π«Ά LIBRARY π«Ά
DWARF Access Library (libdwarf, -ldwarf) π
π₯ SYNOPSIS π₯
#include <libdwarf.h>
int
dwarf_get_cie_info(Dwarf_Cie cie, Dwarf_Unsigned *cie_byte_len,
Dwarf_Small *version, char **augmentation, Dwarf_Unsigned *caf,
Dwarf_Unsigned *daf, Dwarf_Half *ra, Dwarf_Ptr *init_inst,
Dwarf_Unsigned *inst_len, Dwarf_Error *err);
π DESCRIPTION π
Function dwarf_get_cie_info() retrieves the information associated with a given CIE descriptor. It's giving "tell me everything about this CIE", and we love that for us. π¦
Here's the group chat breakdown of every argument:
cieβ should reference a valid DWARF CIE descriptor, such as would be returned by functiondwarf_get_cie_of_fde(3). πcie_byte_lenβ should point to a location that will hold the length in bytes of the CIE descriptor itself. πversionβ should point to a location that will hold the version number of the CIE descriptor. βaugmentationβ should point to a location that will be set to a pointer to a NUL-terminated string containing augmentation data encoded as UTF-8. πcafβ should point to a location that will hold the code alignment factor recorded in the CIE descriptor. π₯dafβ should point to a location that will hold the data alignment factor recorded in the CIE descriptor. πraβ should point to a location that will hold the return address recorded in the CIE descriptor. πinit_instβ should point to a location that will be set to a pointer to an array of bytes containing the initial instructions associated with the CIE descriptor. π§inst_lenβ should point to a location that will hold the length in bytes of the initial instructions returned in argumentinit_inst. β¨errβ if argumenterris notNULL, it will be used to store error information in case of an error. π
π RETURN VALUES π
Function dwarf_get_cie_info() returns DW_DLV_OK when it succeeds. In case of an error, it returns DW_DLV_ERROR and sets the argument err. slay when it works, error tea when it doesn't. π
π ERRORS π
Function dwarf_get_cie_info() can fail with:
[DW_DLE_ARGUMENT]β One of the argumentscie,cie_byte_len,version,augmentation,caf,daf,ra,init_instorinst_lenwasNULL.
bestie, if any one of those required pointers is NULL, it's a no from the function. π«Ά
π SEE ALSO π
dwarf(3)dwarf_get_cie_index(3)dwarf_get_cie_of_fde(3)dwarf_get_fde_at_pc(3)dwarf_get_fde_info_for_all_regs(3)dwarf_get_fde_info_for_all_regs3(3)dwarf_get_fde_info_for_cfa_reg3(3)dwarf_get_fde_info_for_reg(3)dwarf_get_fde_info_for_reg3(3)dwarf_get_fde_instr_bytes(3)dwarf_get_fde_list(3)dwarf_get_fde_list_eh(3)dwarf_get_fde_n(3)dwarf_get_fde_range(3)
xoxo, bestie π β source/version: Debian; date: May 29, 2011. periodt. π
π¦ 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