summaryrefslogtreecommitdiff
path: root/sim/d10v/interp.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-04-18 12:24:52 +0000
committerAndrew Cagney <cagney@redhat.com>1997-04-18 12:24:52 +0000
commit8517f62b166073b871c896fdd642798fae4a08bd (patch)
tree805af7156e712458e58d2ebe21fc7b0b73dee681 /sim/d10v/interp.c
parent2d3588808f00aaa6784f004aa940b862a11be3a2 (diff)
downloadbinutils-gdb-8517f62b166073b871c896fdd642798fae4a08bd.tar.gz
Ref gdb/11763 - can't stop a running simulator:
o Provide poll_quit callback to simulators so that they can poll for SIGINT on clueless OS's. o Add sim_stop to simulators so that clients can request a halt (eg gdbtk's STOP button) Works for PPC! o Re-arange remote-sim.c so that the hard work is moved from gdbsim_resume() to gdbsim_wait() (where it should be).
Diffstat (limited to 'sim/d10v/interp.c')
-rw-r--r--sim/d10v/interp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sim/d10v/interp.c b/sim/d10v/interp.c
index 0eaf8e69892..5eed2346d51 100644
--- a/sim/d10v/interp.c
+++ b/sim/d10v/interp.c
@@ -616,6 +616,15 @@ sim_ctrl_c()
}
+int
+sim_stop (sd)
+ SIM_DESC sd;
+{
+ stop_simulator = 1;
+ return 1;
+}
+
+
/* Run (or resume) the program. */
void
sim_resume (sd, step, siggnal)