aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-e7000.c
diff options
context:
space:
mode:
authorMark Alexander <marka@cygnus>1996-07-01 18:11:07 +0000
committerMark Alexander <marka@cygnus>1996-07-01 18:11:07 +0000
commit97fd185a48ee2b3fee01f66b75df13ad4e999d38 (patch)
tree21299addbd49ed70aed437bb6715371f6a473760 /gdb/remote-e7000.c
parent186dfd16abde98533933b68360bc19b026818716 (diff)
downloadgdb-97fd185a48ee2b3fee01f66b75df13ad4e999d38.zip
gdb-97fd185a48ee2b3fee01f66b75df13ad4e999d38.tar.gz
gdb-97fd185a48ee2b3fee01f66b75df13ad4e999d38.tar.bz2
* remote-e7000.c (e7000_stop): New function.
PR 9935
Diffstat (limited to 'gdb/remote-e7000.c')
-rw-r--r--gdb/remote-e7000.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/remote-e7000.c b/gdb/remote-e7000.c
index 0e5ee8e..07a89c1 100644
--- a/gdb/remote-e7000.c
+++ b/gdb/remote-e7000.c
@@ -2077,6 +2077,15 @@ e7000_wait (pid, status)
return 0;
}
+/* Stop the running program. */
+
+static void
+e7000_stop ()
+{
+ /* Sending a ^C is supposed to stop the running program. */
+ putchar_e7000 (CTRLC);
+}
+
/* Define the target subroutine names. */
struct target_ops e7000_ops =
@@ -2116,7 +2125,7 @@ target e7000 foobar",
0, /* to_can_run */
0, /* to_notice_signals */
0, /* to_thread_alive */
- 0, /* to_stop */
+ e7000_stop, /* to_stop */
process_stratum, /* to_stratum */
0, /* next (unused) */
1, /* to_has_all_memory */