/* Do the quit. All the checks have been done by the caller. */ void async_request_quit (gdb_client_data arg) { /* If the quit_flag has gotten reset back to 0 by the time we get back here, that means that an exception was thrown to unwind the current command before we got back to the event loop. So there is no reason to call quit again here. */ if (check_quit_flag ()) quit (); }
void default_quit_handler (void) { if (check_quit_flag ()) { if (target_terminal::is_ours ()) quit (); else target_pass_ctrlc (); } }