DWARF_DIE_LINK(3)
DWARF_DIE_LINK(3) π β¨
okay so this is the Library Functions Manual page for dwarf_die_link, and it's lowkey iconic because it's all about linking debugging information entries together. bestie, gather round. π«Ά
πΈ NAME πΈ
dwarf_die_link β link a debugging information entry
π LIBRARY π
DWARF Access Library (libdwarf, -ldwarf)
π οΈ SYNOPSIS π οΈ
#include <libdwarf.h>
Dwarf_P_Die
dwarf_die_link(Dwarf_P_Die die, Dwarf_P_Die parent, Dwarf_P_Die child,
Dwarf_P_Die left, Dwarf_P_Die right, Dwarf_Error *err);
π DESCRIPTION π
dwarf_die_link() is the function that links debugging information entries together. no cap, that's the whole vibe. π¦
dieβ this is the debugging information entry you're updating. it's the main character here. πparentβ this sets the new parent link for the debugging information entry.childβ this sets the new first child link for the debugging information entry.leftβ this sets the new left sibling link for the debugging information entry.rightβ this sets the new right sibling link for the debugging information entry.
π¨ okay bestie, this is important: only one ofparent,child,leftandrightis allowed to be non-NULL. don't be out here passing more than one non-NULLlink. fr fr.
Existing links to parent, child, left or right debugging information entries β if there are any β will be unlinked before the specified link is established. so it's not stacking links, it's clearing the old one first. π
If err is not NULL, it will be used to store error information in case of an error. you love to see it. π
π RETURN VALUES π
On success, dwarf_die_link() returns the debugging information entry provided in argument die. slay. β¨
In case of an error, dwarf_die_link() returns DW_DLV_BADADDR and sets the argument err. π
π ERRORS π
dwarf_die_link() can fail with:
[DW_DLE_ARGUMENT]β ArgumentdiewasNULL.[DW_DLE_ARGUMENT]β More than one of the argumentsparent,child,leftandrightwere non-NULL.
π SEE ALSO π
xoxo, Debian π September 4, 2011 π DWARF_DIE_LINK(3)
π¦ 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