Module std::sys::personality

source ·
Expand description

This module contains the implementation of the eh_personality lang item.

The actual implementation is heavily dependent on the target since Rust tries to use the native stack unwinding mechanism whenever possible.

This personality function is still required with -C panic=abort because it is used to catch foreign exceptions from extern "C-unwind" and turn them into aborts.

Additionally, ARM EHABI uses the personality function when generating backtraces.

Modules

  • dwarf 🔒
    Utilities for parsing DWARF-encoded data streams. See http://www.dwarfstd.org, DWARF-4 standard, Section 7 - “Data Representation”
  • gcc 🔒
    Implementation of panics backed by libgcc/libunwind (in some form).