diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-12-15 12:59:55 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-12-15 12:59:55 +0000 |
commit | 02475394db7c7bf9140dc938b8a57d8f75f42c58 (patch) | |
tree | ce2db49281b9dc1f53c5661435878212b6762915 /gdb/remote-sim.c | |
parent | e7ab2a476e8f64722e49c8e1f221f4adad85701d (diff) | |
download | gdb-02475394db7c7bf9140dc938b8a57d8f75f42c58.zip gdb-02475394db7c7bf9140dc938b8a57d8f75f42c58.tar.gz gdb-02475394db7c7bf9140dc938b8a57d8f75f42c58.tar.bz2 |
When using sigaction() to install cntrl-c handler do not also use signal().
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r-- | gdb/remote-sim.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 713e539..22b6565 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); |