aboutsummaryrefslogtreecommitdiff
path: root/sim/tic80
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-05-12 08:33:56 +0000
committerAndrew Cagney <cagney@redhat.com>1997-05-12 08:33:56 +0000
commit9af5dcea8f103c6385dc2244dfb654ad7c7e928d (patch)
tree42882ebb9d6bfb421074dc78fb633ca1ab95b30e /sim/tic80
parentc445af5a2b1fd76533a6ce709677e779f215721f (diff)
downloadgdb-9af5dcea8f103c6385dc2244dfb654ad7c7e928d.zip
gdb-9af5dcea8f103c6385dc2244dfb654ad7c7e928d.tar.gz
gdb-9af5dcea8f103c6385dc2244dfb654ad7c7e928d.tar.bz2
Clear cntrl-c after handling it.
Diffstat (limited to 'sim/tic80')
-rw-r--r--sim/tic80/ChangeLog6
-rw-r--r--sim/tic80/interp.c2
-rw-r--r--sim/tic80/sim-calls.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/sim/tic80/ChangeLog b/sim/tic80/ChangeLog
index 8df333e..5752ea6 100644
--- a/sim/tic80/ChangeLog
+++ b/sim/tic80/ChangeLog
@@ -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.
diff --git a/sim/tic80/interp.c b/sim/tic80/interp.c
index 8fda287..072b9be 100644
--- a/sim/tic80/interp.c
+++ b/sim/tic80/interp.c
@@ -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");
diff --git a/sim/tic80/sim-calls.c b/sim/tic80/sim-calls.c
index ae3f2ab..3677d8c 100644
--- a/sim/tic80/sim-calls.c
+++ b/sim/tic80/sim-calls.c
@@ -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
{