Clear cntrl-c after handling it.
authorAndrew Cagney <cagney@redhat.com>
Mon, 12 May 1997 08:33:56 +0000 (08:33 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 12 May 1997 08:33:56 +0000 (08:33 +0000)
sim/tic80/ChangeLog
sim/tic80/interp.c
sim/tic80/sim-calls.c

index 8df333eed9974698f5d40c2dda179afa4b4777bb..5752ea6b1595283ed1d6da29d7c6b9b50ceb2fbf 100644 (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.
index 8fda2879b4d3860214654d515ee6087a875ee01b..072b9be1b0fb5c121f11a0d956b64dbc58958475 100644 (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");
index ae3f2ab9786191458894f4917db1d2b6f0aabf93..3677d8caac22523d2d6392d0fc9caf4e2b0ed9fe 100644 (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
     {
This page took 0.032117 seconds and 4 git commands to generate.