From: Andrew Cagney Date: Mon, 15 Dec 1997 12:59:55 +0000 (+0000) Subject: When using sigaction() to install cntrl-c handler do not also use signal(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02475394db7c7bf9140dc938b8a57d8f75f42c58;p=binutils-gdb.git When using sigaction() to install cntrl-c handler do not also use signal(). --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cc26113957f..2df0bba7179 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ Mon Dec 15 15:13:57 1997 Andrew Cagney + * remote-sim.c (gdbsim_wait): When HAVE_SIGACTION and SA_RESTART + intall cntrl-c handler with SA_RESTART clear. On BSD systems this + stops read syscalls's being restarted. + * configure.in (configdirs): Check for sigaction. * configure: Re-generate. diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 713e539801e..22b65650a4d 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -700,9 +700,8 @@ gdbsim_wait (pid, status) prev_sigint = osa.sa_handler; } #else - prev_sigint = signal (SIGINT, cntrl_c); -#endif prev_sigint = signal (SIGINT, gdbsim_cntrl_c); +#endif sim_resume (gdbsim_desc, resume_step, target_signal_to_host (resume_siggnal)); signal (SIGINT, prev_sigint);