From bddd69d0c19c823b6875195fa04045324490a53a Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jeremy@system76.com> Date: Wed, 23 Dec 2020 11:20:07 -0700 Subject: [PATCH] Print when abort is called --- src/header/stdlib/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/header/stdlib/mod.rs b/src/header/stdlib/mod.rs index 9769874c..c5fd5d1b 100644 --- a/src/header/stdlib/mod.rs +++ b/src/header/stdlib/mod.rs @@ -89,6 +89,7 @@ pub unsafe extern "C" fn a64l(s: *const c_char) -> c_long { #[no_mangle] pub unsafe extern "C" fn abort() { + eprintln!("abort() called"); intrinsics::abort(); } -- GitLab