code wiki / (root) / nx_crash.nx

nx_crash.nx

buildroot/runtime/nx_crash.nx

11065 B193 linesdepth 0pulls 0 transitivereach 6 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_crash.nx -- Captures and prints instruction and fault addresses on signal crashes, then re-raises the signal.

dependencies 0 imports · 6 importers

nx_crash.nx nx_compile_field_candidate_t280.nx nx_compile_x86.nx nx_doc_lexstat.nx nx_probe_crash_live.nx nx_probe_crashstk_live.nx nxasm_x86_main.nx

imports: none

imported by: nx_compile_field_candidate_t280.nxnx_compile_x86.nxnx_doc_lexstat.nxnx_probe_crash_live.nxnx_probe_crashstk_live.nxnxasm_x86_main.nx

structs

none

consts

2const K_MAGIC_65536: i64 = 65536
3const K_MAGIC_32768: i64 = 32768

functions

43func nxcr_write(s: *u8, n: i64) -> i64
46func nxcr_mmap(size: i64) -> i64
52func nxcr_puts(s: *u8) -> i64
called by 1: nx_crash_on_signal calls 1: nxcr_write
60func nxcr_puthex(v: i64) -> i64
called by 1: nx_crash_on_signal calls 1: nxcr_write
76func nxcr_putdec(v: i64) -> i64
called by 1: nx_crash_on_signal calls 1: nxcr_write
93func nx_crash_on_signal(sig: i64, si: *i64, uc: *i64) -> i64
161func nxcr_install_one(sig: i64, h: i64) -> i64
called by 1: nx_crash_guard calls 1: nxcr_mmap
179func nx_crash_guard() -> i64