/* generate a debug event from inside the server and queue it */ void generate_debug_event( struct thread *thread, int code, void *arg ) { if (thread->process->debugger) { struct debug_event *event = alloc_debug_event( thread, code, arg, NULL ); if (event) { link_event( event ); suspend_process( thread->process ); release_object( event ); } } }
/* generate a debug event from inside the server and queue it */ void generate_debug_event( struct thread *thread, int code, const void *arg ) { if (thread->process->debugger) { struct debug_event *event = alloc_debug_event( thread, code, arg ); if (event) { link_event( event ); suspend_process( thread->process ); release_object( event ); } clear_error(); /* ignore errors */ } }