DWARF_SET_FRAME_CFA_VALUE(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

okay so bestie, this is the Library Functions Manual page for DWARF_SET_FRAME_CFA_VALUE(3) β€” and it’s literally the whole dwarf_set_frame_* squad for the internal register rule table. no cap, it’s giving niche-but-iconic πŸ’…βœ¨

🌸 NAME 🌸

dwarf_set_frame_cfa_value, dwarf_set_frame_rule_initial_value, dwarf_set_frame_rule_table_size, dwarf_set_frame_same_value, dwarf_set_frame_undefined_value β€” set internal register rule table parameters. periodt.

🫢 LIBRARY 🫢

DWARF Access Library (libdwarf, -ldwarf) β€” bestie, that’s the whole library situation πŸ’–

✨ SYNOPSIS ✨

#include <libdwarf.h>

Dwarf_Half
dwarf_set_frame_cfa_value(Dwarf_Debug dbg, Dwarf_Half value);

Dwarf_Half
dwarf_set_frame_rule_initial_value(Dwarf_Debug dbg, Dwarf_Half value);

Dwarf_Half
dwarf_set_frame_rule_table_size(Dwarf_Debug dbg, Dwarf_Half value);

Dwarf_Half
dwarf_set_frame_same_value(Dwarf_Debug dbg, Dwarf_Half value);

Dwarf_Half
dwarf_set_frame_undefined_value(Dwarf_Debug dbg, Dwarf_Half value);

🧚 DESCRIPTION 🧚

okay so these functions set the parameters of the internal register rule table. that’s the whole assignment, bestie.

Argument dbg should reference a DWARF debug context allocated using dwarf_init(3).

Argument value should hold the parameter value to set.

  • dwarf_set_frame_cfa_value() β€” sets the column number for the CFA register rule in the internal register rule table. The constant DW_FRAME_CFA_COL is the default CFA register column number for DWARF2-only interfaces, and the constant DW_FRAME_CFA_COL3 is the default CFA column number for DWARF3-compatible interfaces. two defaults, two vibes, iykyk 🌈
  • dwarf_set_frame_rule_initial_value() β€” sets the initial value of the register rules in the internal register rule table. The default initial value is the constant DW_FRAME_REG_INITIAL_VALUE, defined in the header file <libdwarf.h>. cute default alert πŸŽ€
  • dwarf_set_frame_rule_table_size() β€” sets the maxmium number of columns of the internal register rule table (yes, β€œmaxmium” 😭 that’s the page’s spelling, not mine). Argument value should be at least as large as the number of real registers in the ABI. important, bestie πŸ’€
  • dwarf_set_frame_same_value() β€” sets the register number representing the β€œsame value” register rule. The default register number for the β€œsame value” rule is the constant DW_FRAME_SAME_VAL, defined in the header file <libdwarf.h>. slay 🫢
  • dwarf_set_frame_undefined_value() β€” sets the register number representing the β€œundefined” register rule. The default register number for the β€œundefined” rule is the constant DW_FRAME_UNDEFINED_VAL, defined in the header file <libdwarf.h>. iconic 🌟

πŸ’– RETURN VALUES πŸ’–

These functions return the previous value of the parameter being set. so you get the old one back β€” setup, bestie.

πŸ‘€ SEE ALSO πŸ‘€


mwah πŸ’‹ this page is from Debian, dated June 18, 2011, and the footer says DWARF_SET_FRAME_CFA_VALUE(3) β€” bye bestie, go set those internal register rule table parameters 🫢✨

πŸ“¦ where this page comes from