DWARF_GET_CU_DIE_OFFSET(3)
π NAME π
This is DWARF_GET_CU_DIE_OFFSET(3), bestie β straight outta the Library Functions Manual β and the actual main characters are dwarf_get_arange_cu_header_offset and dwarf_get_cu_die_offset, aka your retrieve-compilation-unit-offsets besties. π
π LIBRARY π
DWARF Access Library (libdwarf, -ldwarf) β your DWARF-access home base, periodt. π«Ά
β¨ SYNOPSIS β¨
#include <libdwarf.h>
int
dwarf_get_arange_cu_header_offset(Dwarf_Arange ar, Dwarf_Off *ret,
Dwarf_Error *err);
int
dwarf_get_cu_die_offset(Dwarf_Arange ar, Dwarf_Off *ret,
Dwarf_Error *err);
π¦ DESCRIPTION π¦
Okay so these functions are literally here to retrieve the offsets β relative to the .debug_info DWARF section β of the debugging information entries describing the compilation unit associated with a Dwarf_Arange descriptor. Iconic. β¨
Function dwarf_get_arange_cu_header_offset() retrieves the offset of the compilation unit header associated with argument ar, and stores it in the location pointed to by argument ret. Slay. π
Function dwarf_get_cu_die_offset() retrieves the offset of the debugging information entry for the compilation unit associated with argument ar, and stores it in the location pointed to by argument ret. Also slay. πΈ
If argument err is not NULL, these functions will use it to store error information, in case of an error. Noted, bestie. π«Ά
π RETURN VALUES π
On success, these functions return DW_DLV_OK. In case of an error, they return DW_DLV_ERROR and set the argument err. That's the whole vibe check. β
π ERRORS π
These functions may fail with:
[DW_DLE_ARGUMENT]β Argumentarwas not a validDwarf_Arangedescriptor.[DW_DLE_ARGUMENT]β ArgumentretwasNULL.
Not me showing up with a bad descriptor or aNULLretβ that's a hard no, bestie. π
π₯ SEE ALSO π₯
Source/version: Debian; date: April 10, 2011; page: DWARF_GET_CU_DIE_OFFSET(3). Byeee! πβ¨
π¦ 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