@@ -430,31 +430,37 @@ impl HandlerInner {
430430 // that we require
431431 let nix_info = & * ( ( info as * const libc:: siginfo_t ) . cast :: < libc:: signalfd_siginfo > ( ) ) ;
432432
433+ debug_print ! ( "acquired siginfo" ) ;
434+
433435 // Allow ourselves to be dumped, if that is what the user handler wishes to do
434436 let _set_dumpable = SetDumpable :: new ( self . dump_process ) ;
437+ debug_print ! ( "set dumpable" ) ;
435438 let mut crash_ctx = CRASH_CONTEXT . lock ( ) ;
436439
437440 {
438441 * crash_ctx = mem:: MaybeUninit :: zeroed ( ) ;
442+ debug_print ! ( "zeroed crashctx" ) ;
439443 let cc = & mut * crash_ctx. as_mut_ptr ( ) ;
440444
441445 ptr:: copy_nonoverlapping ( nix_info, & mut cc. siginfo , 1 ) ;
446+ debug_print ! ( "copied siginfo" ) ;
442447
443448 let uc_ptr = & * ( uc as * const libc:: c_void ) . cast :: < crash_context:: ucontext_t > ( ) ;
444449 ptr:: copy_nonoverlapping ( uc_ptr, & mut cc. context , 1 ) ;
450+ debug_print ! ( "copied context" ) ;
445451
446452 cfg_if:: cfg_if! {
447453 if #[ cfg( target_arch = "aarch64" ) ] {
448- let fp_ptr = uc_ptr. uc_mcontext. __reserved. as_ptr( ) . cast:: <crash_context:: fpsimd_context>( ) ;
454+ // let fp_ptr = uc_ptr.uc_mcontext.__reserved.as_ptr().cast::<crash_context::fpsimd_context>();
449455
450- if ( * fp_ptr) . head. magic == crash_context:: FPSIMD_MAGIC {
451- ptr:: copy_nonoverlapping( fp_ptr, & mut cc. float_state, 1 ) ;
452- }
456+ // if (*fp_ptr).head.magic == crash_context::FPSIMD_MAGIC {
457+ // ptr::copy_nonoverlapping(fp_ptr, &mut cc.float_state, 1);
458+ // }
453459 } else if #[ cfg( not( target_arch = "arm" ) ) ] {
454- if !uc_ptr. uc_mcontext. fpregs. is_null( ) {
455- ptr:: copy_nonoverlapping( uc_ptr. uc_mcontext. fpregs, ( ( & mut cc. float_state) as * mut crash_context:: fpregset_t) . cast( ) , 1 ) ;
460+ // if !uc_ptr.uc_mcontext.fpregs.is_null() {
461+ // ptr::copy_nonoverlapping(uc_ptr.uc_mcontext.fpregs, ((&mut cc.float_state) as *mut crash_context::fpregset_t).cast(), 1);
456462
457- }
463+ // }
458464 }
459465 }
460466
0 commit comments