Clear cntrl-c after handling it.

This commit is contained in:
Andrew Cagney 1997-05-12 08:33:56 +00:00
parent c445af5a2b
commit 9af5dcea8f
3 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,11 @@
Mon May 12 11:12:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
* sim-calls.c (sim_stop_reason): Restore keep_running after a
CNTRL-C, don't re-clear it.
* interp.c (engine_error): stop rather than signal with SIGABRT
when an error.
* insns (do_ld): For 64bit loads, always store LSW in rDest, MSW in
rDest + 1. Also done by Michael Meissner <meissner@cygnus.com>
(do_st): Converse for store.

View File

@ -62,7 +62,7 @@ engine_error (SIM_DESC sd,
if (sd->halt_ok)
{
sim_io_eprintf (sd, "\n");
engine_halt (sd, cpu, cia, sim_signalled, SIGABRT);
engine_halt (sd, cpu, cia, sim_stopped, SIGABRT);
}
else
sim_io_error (sd, " - aborting simulation");

View File

@ -237,7 +237,7 @@ sim_stop_reason (SIM_DESC sd, enum sim_stop *reason, int *sigrc)
{
*reason = sim_stopped;
*sigrc = SIGINT;
keep_running = 0;
keep_running = 1;
}
else
{