From 16c10a30fa3b689f0afa24ce1a622b7b716c088f Mon Sep 17 00:00:00 2001 From: Ariel Abreu Date: Sat, 7 Oct 2023 11:02:18 -0400 Subject: [PATCH] Remove debugging from `dtape_thread_*_state_*_user` --- duct-tape/src/thread.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/duct-tape/src/thread.c b/duct-tape/src/thread.c index 8541de6..f4ce909 100644 --- a/duct-tape/src/thread.c +++ b/duct-tape/src/thread.c @@ -207,11 +207,6 @@ int dtape_thread_load_state_from_user(dtape_thread_t* thread, uintptr_t thread_s return -LINUX_EFAULT; } - // debugging - if (tstate.rip == 0) { - panic("bad RIP"); - } - thread_set_state(current_thread(), x86_THREAD_STATE64, (thread_state_t) &tstate, x86_THREAD_STATE64_COUNT); thread_set_state(current_thread(), x86_FLOAT_STATE64, (thread_state_t) &fstate, x86_FLOAT_STATE64_COUNT); } else if (task->architecture == dserver_rpc_architecture_i386) { @@ -240,11 +235,6 @@ int dtape_thread_save_state_to_user(dtape_thread_t* thread, uintptr_t thread_sta x86_float_state64_t fstate; mach_msg_type_number_t count; - // debugging - if (LIST_FIRST(&thread->user_states)->thread_state.uts.ts64.rip == 0) { - panic("bad RIP"); - } - count = x86_THREAD_STATE64_COUNT; thread_get_state(current_thread(), x86_THREAD_STATE64, (thread_state_t) &tstate, &count);