From 286f8ed22e6d7d1895811a6f52ce1c7c54fb66eb Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Sat, 1 Aug 2015 21:46:42 -0500 Subject: [PATCH] Return result directly from single_step --- proc/threads_darwin.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/proc/threads_darwin.c b/proc/threads_darwin.c index a0988b68..d3ef14c1 100644 --- a/proc/threads_darwin.c +++ b/proc/threads_darwin.c @@ -90,10 +90,7 @@ single_step(thread_act_t thread) { kret = thread_set_state(thread, x86_THREAD_STATE64, (thread_state_t)®s, count); if (kret != KERN_SUCCESS) return kret; - kret = resume_thread(thread); - if (kret != KERN_SUCCESS) return kret; - - return KERN_SUCCESS; + return resume_thread(thread); } kern_return_t