forked from Imagelibrary/binutils-gdb
(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
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user