Bug 16450

Summary: sims unnecessarily set SIGINT handler
Product: gdb Reporter: Tom Tromey <tromey>
Component: simAssignee: Not yet assigned to anyone <unassigned>
Severity: normal CC: vapier
Priority: P2    
Version: HEAD   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description Tom Tromey 2014-01-14 18:13:55 UTC
Many of the simulators change the SIGINT handler.
E.g., moxie/interp.c:

  sigsave = signal (SIGINT, interrupt);

However, this is unnecessary.
remote-sim.h already provides an API for asynchronously stopping
a sim; and both gdb and the drivers (run.c and nrun.c at least,
I didn't check the others) install a SIGINT handler which
calls this method.