aboutsummaryrefslogtreecommitdiff
path: root/gdb/procfs.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1994-11-03 22:40:14 +0000
committerStu Grossman <grossman@cygnus>1994-11-03 22:40:14 +0000
commit78b459a7e7d0930a3ac1c4ca2fe4706559675cdc (patch)
tree1b0c70f4dee13d9078ee9b823d1f7803e0521fef /gdb/procfs.c
parentdd830c247d9f309090f43493d14cc0889ced19cc (diff)
downloadgdb-78b459a7e7d0930a3ac1c4ca2fe4706559675cdc.zip
gdb-78b459a7e7d0930a3ac1c4ca2fe4706559675cdc.tar.gz
gdb-78b459a7e7d0930a3ac1c4ca2fe4706559675cdc.tar.bz2
* corelow.c, exec.c, inftarg.c, m3-nat.c, op50-rom.c, procfs.c,
remote-adapt.c, remote-e7000.c, remote-eb.c, remote-es.c, remote-hms.c, remote-mips.c, remote-mm.c, remote-mon.c, remote-nindy.c, remote-os9k.c, remote-pa.c, remote-sim.c, remote-st.c, remote-udi.c, remote-vx.c, remote-z8k.c, remote.c, w89k-rom.c, target.c, target.h: Add support for target_stop(). * gdbtk.c (gdb_stop): Switch to target_stop(). * ChangeLog: Fix comment to make shebs happy...
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r--gdb/procfs.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c
index e6e3f9c..0f75191 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -3656,6 +3656,20 @@ procfs_stopped_by_watchpoint(pid)
}
#endif
+/* Send a SIGINT to the process group. This acts just like the user typed a
+ ^C on the controlling terminal.
+
+ XXX - This may not be correct for all systems. Some may want to use
+ killpg() instead of kill (-pgrp). */
+
+void
+child_stop ()
+{
+ extern pid_t inferior_process_group;
+
+ kill (-inferior_process_group, SIGINT);
+}
+
struct target_ops procfs_ops = {
"procfs", /* to_shortname */
@@ -3686,6 +3700,7 @@ struct target_ops procfs_ops = {
procfs_mourn_inferior, /* to_mourn_inferior */
procfs_can_run, /* to_can_run */
procfs_notice_signals, /* to_notice_signals */
+ child_stop, /* to_stop */
process_stratum, /* to_stratum */
0, /* to_next */
1, /* to_has_all_memory */