diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-11-22 12:52:44 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-11-22 12:52:44 +0000 |
commit | aaa11abe428e6433b3e41fb88431886f4445a462 (patch) | |
tree | c179020dfe5d8670cfd51dc4669f643bd7474e42 /sim/tic80/interp.c | |
parent | 38639b1294135f3fcc4339d0081777d755c065d9 (diff) | |
download | gdb-aaa11abe428e6433b3e41fb88431886f4445a462.zip gdb-aaa11abe428e6433b3e41fb88431886f4445a462.tar.gz gdb-aaa11abe428e6433b3e41fb88431886f4445a462.tar.bz2 |
Clarify meaning of sim_signalled's SIGRC argument. Document that this
isn't possible in sim-reason.c and just return the target SIGRC
instead.
For simulators that rely on sim-reason.c, replace SIG* with SIM_SIG*.
Hack nrun.c so that when it is executed (ARGV[0]) as `step' instead
of `run' it single steps the simulator. Allows testing of single step
without full GDB.
Diffstat (limited to 'sim/tic80/interp.c')
-rw-r--r-- | sim/tic80/interp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sim/tic80/interp.c b/sim/tic80/interp.c index 24c86f6..17f06d4 100644 --- a/sim/tic80/interp.c +++ b/sim/tic80/interp.c @@ -26,8 +26,6 @@ #include "idecode.h" #include "itable.h" -#include <signal.h> - #ifdef HAVE_STRING_H #include <string.h> #else @@ -103,7 +101,7 @@ engine_run_until_stop (SIM_DESC sd, cia = idecode_issue (sd, insn, cia); } while (*keep_running); - engine_halt (sd, cpu, cia, sim_stopped, SIGINT); + engine_halt (sd, cpu, cia, sim_stopped, SIM_SIGINT); } } @@ -122,9 +120,8 @@ engine_step (SIM_DESC sd) cia = cpu->cia; insn = IMEM (cia); cia = idecode_issue (sd, insn, cia); - engine_halt (sd, cpu, cia, sim_stopped, SIGTRAP); + engine_halt (sd, cpu, cia, sim_stopped, SIM_SIGTRAP); } } #endif - |