From 78b459a7e7d0930a3ac1c4ca2fe4706559675cdc Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Thu, 3 Nov 1994 22:40:14 +0000 Subject: * 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... --- gdb/procfs.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'gdb/procfs.c') 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 */ -- cgit v1.1