diff options
Diffstat (limited to 'gdb/nto-procfs.c')
-rw-r--r-- | gdb/nto-procfs.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c index 262c41f..b772762 100644 --- a/gdb/nto-procfs.c +++ b/gdb/nto-procfs.c @@ -694,20 +694,20 @@ Give up (and stop debugging it)? "))) /* The user typed ^C twice. */ static void -nto_interrupt_twice (int signo) +nto_handle_sigint_twice (int signo) { signal (signo, ofunc); interrupt_query (); - signal (signo, nto_interrupt_twice); + signal (signo, nto_handle_sigint_twice); } static void -nto_interrupt (int signo) +nto_handle_sigint (int signo) { /* If this doesn't work, try more severe steps. */ - signal (signo, nto_interrupt_twice); + signal (signo, nto_handle_sigint_twice); - target_stop (inferior_ptid); + target_interrupt (inferior_ptid); } static ptid_t @@ -735,7 +735,7 @@ procfs_wait (struct target_ops *ops, devctl (ctl_fd, DCMD_PROC_STATUS, &status, sizeof (status), 0); while (!(status.flags & _DEBUG_FLAG_ISTOP)) { - ofunc = (void (*)()) signal (SIGINT, nto_interrupt); + ofunc = (void (*)()) signal (SIGINT, nto_handle_sigint); sigwaitinfo (&set, &info); signal (SIGINT, ofunc); devctl (ctl_fd, DCMD_PROC_STATUS, &status, sizeof (status), 0); @@ -1223,7 +1223,7 @@ procfs_create_inferior (struct target_ops *ops, char *exec_file, } static void -procfs_stop (struct target_ops *self, ptid_t ptid) +procfs_interrupt (struct target_ops *self, ptid_t ptid) { devctl (ctl_fd, DCMD_PROC_STOP, NULL, 0, 0); } @@ -1446,7 +1446,7 @@ init_procfs_targets (void) t->to_thread_alive = procfs_thread_alive; t->to_update_thread_list = procfs_update_thread_list; t->to_pid_to_str = procfs_pid_to_str; - t->to_stop = procfs_stop; + t->to_interrupt = procfs_interrupt; t->to_have_continuable_watchpoint = 1; t->to_extra_thread_info = nto_extra_thread_info; |