this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove printf's from sigexc.c, they confuse LLDB

+5 -5
+5 -5
src/kernel/emulation/linux/signal/sigexc.c
··· 66 66 // the debugger to handle this situation. 67 67 if (!am_i_ptraced && lkm_call(NR_get_tracer, NULL) != 0) 68 68 { 69 - __simple_printf("the predecessor is traced\n"); 69 + // __simple_printf("the predecessor is traced\n"); 70 70 darling_sigexc_self(); 71 71 sigexc_handler(LINUX_SIGTRAP, NULL, NULL); 72 72 } ··· 124 124 darling_sigexc_self(); 125 125 126 126 // Stop on attach 127 - sigexc_handler(LINUX_SIGSTOP, NULL, NULL); 127 + sigexc_handler(LINUX_SIGSTOP, NULL, ctxt); 128 128 } 129 129 else if (((uint32_t) info->si_value) == SIGRT_MAGIC_DISABLE_SIGEXC) 130 130 { ··· 189 189 { 190 190 am_i_ptraced = false; 191 191 192 - __simple_printf("darling_sigexc_uninstall()\n"); 192 + // __simple_printf("darling_sigexc_uninstall()\n"); 193 193 for (int i = 1; i <= 31; i++) 194 194 { 195 195 if (i == LINUX_SIGSTOP || i == LINUX_SIGKILL) ··· 247 247 void sigexc_handler(int linux_signum, struct linux_siginfo* info, struct linux_ucontext* ctxt) 248 248 { 249 249 char buf[128]; 250 - __simple_sprintf(buf, "sigexc_handler(%d, %p)\n", linux_signum, info); 250 + __simple_sprintf(buf, "sigexc_handler(%d, %p, %p)\n", linux_signum, info, ctxt); 251 251 lkm_call(0x1028, buf); 252 252 253 253 if (!darling_am_i_ptraced()) ··· 352 352 thread_set_state(thread, x86_FLOAT_STATE32, (thread_state_t) &fstate, x86_FLOAT_STATE32_COUNT); 353 353 #endif 354 354 355 - __simple_printf("Passing Mach exception to port %d\n", port); 355 + // __simple_printf("Passing Mach exception to port %d\n", port); 356 356 if (port != 0) 357 357 { 358 358 _pthread_setspecific_direct(SIGEXC_TSD_KEY, bsd_signum);