diff --git a/ports/src/lib/gdbserver_platform/gdbserver_platform_helper.cc b/ports/src/lib/gdbserver_platform/gdbserver_platform_helper.cc index a9dd9101b6..9ea367a5bc 100644 --- a/ports/src/lib/gdbserver_platform/gdbserver_platform_helper.cc +++ b/ports/src/lib/gdbserver_platform/gdbserver_platform_helper.cc @@ -33,8 +33,6 @@ bool get_current_thread_state(Thread_state &thread_state) ptid_t ptid = ((struct inferior_list_entry*)current_inferior)->id; - csc->state(csc->thread_cap(ptid.lwp), &thread_state); - - return true; + return !csc->state(csc->thread_cap(ptid.lwp), &thread_state); }