* 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...
This commit is contained in:
parent
dd830c247d
commit
78b459a7e7
17 changed files with 89 additions and 20 deletions
15
gdb/procfs.c
15
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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue