Clear cntrl-c after handling it.
This commit is contained in:
parent
c445af5a2b
commit
9af5dcea8f
|
@ -1,5 +1,11 @@
|
||||||
Mon May 12 11:12:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
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
|
* insns (do_ld): For 64bit loads, always store LSW in rDest, MSW in
|
||||||
rDest + 1. Also done by Michael Meissner <meissner@cygnus.com>
|
rDest + 1. Also done by Michael Meissner <meissner@cygnus.com>
|
||||||
(do_st): Converse for store.
|
(do_st): Converse for store.
|
||||||
|
|
|
@ -62,7 +62,7 @@ engine_error (SIM_DESC sd,
|
||||||
if (sd->halt_ok)
|
if (sd->halt_ok)
|
||||||
{
|
{
|
||||||
sim_io_eprintf (sd, "\n");
|
sim_io_eprintf (sd, "\n");
|
||||||
engine_halt (sd, cpu, cia, sim_signalled, SIGABRT);
|
engine_halt (sd, cpu, cia, sim_stopped, SIGABRT);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
sim_io_error (sd, " - aborting simulation");
|
sim_io_error (sd, " - aborting simulation");
|
||||||
|
|
|
@ -237,7 +237,7 @@ sim_stop_reason (SIM_DESC sd, enum sim_stop *reason, int *sigrc)
|
||||||
{
|
{
|
||||||
*reason = sim_stopped;
|
*reason = sim_stopped;
|
||||||
*sigrc = SIGINT;
|
*sigrc = SIGINT;
|
||||||
keep_running = 0;
|
keep_running = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue