static void gdbsim_stop (void) { if (!sim_stop (gdbsim_desc)) { quit (); } }
static RETSIGTYPE cntrl_c (int sig) { if (! sim_stop (sd)) { fprintf (stderr, "Quit!\n"); exit (1); } }
void sim_io_poll_quit (SIM_DESC sd) { if (STATE_CALLBACK (sd)->poll_quit != NULL && poll_quit_count-- < 0) { poll_quit_count = POLL_QUIT_INTERVAL; if (STATE_CALLBACK (sd)->poll_quit (STATE_CALLBACK (sd))) sim_stop (sd); } }