rem: stop_thread(B_THREAD_NOT_RUNNING, NULL);
add: struct thread *thread = thread_get_current_thread(); port_id nubPort; status_t error = ensure_debugger_installed(B_CURRENT_TEAM, &nubPort); if (error != B_OK) { dprintf("user_debug_stop_thread(): Failed to install debugger: " "thread: %ld: %s\n", thread->id, strerror(error)); return; }   debug_thread_debugged message; message.origin.thread = thread->id; message.origin.team = thread->team->id; message.origin.nub_port = nubPort;  thread_hit_debug_event(B_DEBUGGER_MESSAGE_THREAD_DEBUGGED, &message, sizeof(message), true);
context: user_debug_stop_thread(){	stop_thread(B_THREAD_NOT_RUNNING, NULL);}