mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-26 19:44:11 +08:00
* inflow.c (pass_signal, set_sigint_trap, clear_sigint_trap): Add
new routines to deal with sending SIGINTs to attached processes when the user interrupts the controlling GDB. * inftarg.c (child_wait), procfs.c (procfs_wait): Add calls to the aforementioned routines when waiting for the attached process.
This commit is contained in:
parent
df93a6c142
commit
1549918a3f
@ -1,5 +1,11 @@
|
||||
Wed Nov 4 15:27:31 1992 Stu Grossman (grossman at cygnus.com)
|
||||
|
||||
* inflow.c (pass_signal, set_sigint_trap, clear_sigint_trap): Add
|
||||
new routines to deal with sending SIGINTs to attached processes
|
||||
when the user interrupts the controlling GDB.
|
||||
* inftarg.c (child_wait), procfs.c (procfs_wait): Add calls to
|
||||
the aforementioned routines when waiting for the attached process.
|
||||
|
||||
* elfread.c, mipsread.c: Include <string.h>.
|
||||
* i386-stub.c: Include "ansidecl.h" to deal with prototypes.
|
||||
* serial.h: Add prototype for serial_restore().
|
||||
|
@ -1956,10 +1956,17 @@ procfs_wait (statloc)
|
||||
}
|
||||
else if (!(pi.prstatus.pr_flags & (PR_STOPPED | PR_ISTOP)))
|
||||
{
|
||||
if (attach_flag)
|
||||
set_sigint_trap(); /* Causes SIGINT to be passed on to the
|
||||
attached process. */
|
||||
|
||||
if (ioctl (pi.fd, PIOCWSTOP, &pi.prstatus) < 0)
|
||||
{
|
||||
checkerr++;
|
||||
}
|
||||
|
||||
if (attach_flag)
|
||||
clear_sigint_trap();
|
||||
}
|
||||
if (checkerr)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user