aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-11-22 12:52:44 +0000
committerAndrew Cagney <cagney@redhat.com>1997-11-22 12:52:44 +0000
commitaaa11abe428e6433b3e41fb88431886f4445a462 (patch)
treec179020dfe5d8670cfd51dc4669f643bd7474e42 /include
parent38639b1294135f3fcc4339d0081777d755c065d9 (diff)
downloadgdb-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 'include')
-rw-r--r--include/remote-sim.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/remote-sim.h b/include/remote-sim.h
index c4fecc0..a785437 100644
--- a/include/remote-sim.h
+++ b/include/remote-sim.h
@@ -223,8 +223,11 @@ int sim_stop PARAMS ((SIM_DESC sd));
undefined memory region (SIGSEGV); Mis-aligned memory access
(SIGBUS).
- SIM_SIGNALLED: The simulator encountered target code that requires
- the signal SIGRC to be delivered to the simulated program.
+ SIM_SIGNALLED: The program has stopped. The simulator has
+ encountered target code that requires the (HOST) signal SIGRC to be
+ delivered to the simulated program. Ex: `kill (getpid (),
+ TARGET_SIGxxx)'. Where TARGET_SIGxxx has been translated into a
+ host signal. FIXME: This is not always possible..
SIM_RUNNING, SIM_POLLING: The return of one of these values
indicates a problem internal to the simulator. */