unwinddump(1)
π unwinddump(1) β General Commands Manual, but make it cute π
okay bestie, welcome to the unwinddump(1) page from the General Commands Manual. We're about to get into compact unwind information, and honestly it's giving "niche Unix lore that slaps." π
β¨
πΈ NAME πΈ
unwinddump β Displays compact unwind information in an executable. That's the whole name moment, no cap. π«Ά
β¨ SYNOPSIS β¨
unwinddump [-arch arch-name] file(s)
So yeah, that's -arch arch-name right there in the brackets, and then file(s) β copied exactly, bestie, we do not play games with the synopsis. π
π DESCRIPTION π
Okay so picture this: when a C++ (or x86_64 Objective-C) exception is thrown, the runtime must unwind the stack looking for some function to catch the exception. Very main-character energy for the stack, honestly. ππ
Traditionally, the unwind information is stored in the __TEXT/__eh_frame section of each executable as Dwarf CFI (call frame information). Yes, Dwarf CFI β not a fantasy creature, just call frame information. π§β¨
Beginning in Mac OS X 10.6, the unwind information is also encoded in the __TEXT/__unwind_info section using a two-level lookup table of compact unwind encodings. The way that's a two-level lookup table? Obsessed. π₯π
The unwinddump tool displays the content of the __TEXT/__unwind_info section. That's it, that's the job. Iconic behavior, fr fr. π
π¦ SEE ALSO π¦
Go give these other manuals a little visit too, iykyk. π
Signed, sealed, delivered by Darwin β November 7, 2008. Bye bestie, stay unwound! πππ¦
π¦ where this page comes from
- nixpkgs unstable: ld64 957.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms