Add debug infos on panic
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
#[path = "unsupported/mod.rs"]
|
||||
mod unsupported;
|
||||
pub use self::unsupported::*;
|
||||
|
||||
#[path = "../../../../../crates/shared/src/syscall.rs"]
|
||||
mod syscall;
|
||||
|
||||
/// # Safety
|
||||
/// `argc` and `argv` are passed by the kernel
|
||||
#[unsafe(no_mangle)]
|
||||
@@ -9,3 +16,8 @@ pub unsafe extern "C" fn _start(argc: isize, argv: *const *const u8) -> isize {
|
||||
|
||||
unsafe { main(argc, argv) }
|
||||
}
|
||||
|
||||
pub fn abort_internal() -> ! {
|
||||
// todo real abort
|
||||
syscall::exit()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user