aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-sim.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-12-15 12:38:05 +0000
committerAndrew Cagney <cagney@redhat.com>1997-12-15 12:38:05 +0000
commite7ab2a476e8f64722e49c8e1f221f4adad85701d (patch)
tree00db551c1d924721769ea0cc3a59cfb710211814 /gdb/remote-sim.c
parent9c8ec16d789c81df0f669b1db2e73f5bb3e77012 (diff)
downloadgdb-e7ab2a476e8f64722e49c8e1f221f4adad85701d.zip
gdb-e7ab2a476e8f64722e49c8e1f221f4adad85701d.tar.gz
gdb-e7ab2a476e8f64722e49c8e1f221f4adad85701d.tar.bz2
(Mostly from Gavin Koch)
In dwarf2read.c, if the ABI is 32 bit and 64 bit addresses are encountered discard the most significant 32 bits. Use CORE_ADDR for address variables instead of long. Add more explicit tx49 configur target. Check/use sigaction/SA_RESTART in remote-sim.c
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r--gdb/remote-sim.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index 22952ca..713e539 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -690,6 +690,18 @@ gdbsim_wait (pid, status)
if (sr_get_debug ())
printf_filtered ("gdbsim_wait\n");
+#if defined (HAVE_SIGACTION) && defined (SA_RESTART)
+ {
+ struct sigaction sa, osa;
+ sa.sa_handler = gdbsim_cntrl_c;
+ sigemptyset (&sa.sa_mask);
+ sa.sa_flags = 0;
+ sigaction (SIGINT, &sa, &osa);
+ prev_sigint = osa.sa_handler;
+ }
+#else
+ prev_sigint = signal (SIGINT, cntrl_c);
+#endif
prev_sigint = signal (SIGINT, gdbsim_cntrl_c);
sim_resume (gdbsim_desc, resume_step,
target_signal_to_host (resume_siggnal));