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/sim-main.h | |
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/sim-main.h')
-rw-r--r-- | sim/tic80/sim-main.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sim/tic80/sim-main.h b/sim/tic80/sim-main.h index 228ad9a..67db353 100644 --- a/sim/tic80/sim-main.h +++ b/sim/tic80/sim-main.h @@ -25,8 +25,10 @@ #include "sim-basics.h" +#include "sim-signal.h" + +#include <signal.h> /* For kill() in insns:do_trap */ -#include <signal.h> #include <errno.h> #ifdef HAVE_UNISTD_H #include <unistd.h> @@ -77,7 +79,3 @@ extern void engine_init #define kill(sig, pid) (errno = EINVAL, -1) #endif #endif - -#ifndef SIGTRAP -# define SIGTRAP 5 -#endif |