diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-08-31 20:42:10 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-08-31 20:42:10 +0000 |
commit | 1e75b5f53099318e67d54e805550ca740cc46533 (patch) | |
tree | 50477b10252f94741a7224f88c2bce6a0a246996 /gdb/procfs.c | |
parent | 6bd3f7654dba32de268ccff7752ecbdb0b737f83 (diff) | |
download | gdb-1e75b5f53099318e67d54e805550ca740cc46533.zip gdb-1e75b5f53099318e67d54e805550ca740cc46533.tar.gz gdb-1e75b5f53099318e67d54e805550ca740cc46533.tar.bz2 |
* inflow.c (set_sigint_trap, clear_sigint_trap): Check for
attach_flag (this check was performed by the callers). Also check
inferior_thisrun_terminal.
* inftarg.c (child_wait), lynx-nat.c (child_wait),
procfs.c (wait_fd), symm-nat.c (child_wait): Don't check
attach_flag in deciding whether to call set_sigint_trap and
clear_sigint_trap.
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c index d9891b4..5d3ed27 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -570,8 +570,7 @@ wait_fd () int num_fds; int i; - if (attach_flag) - set_sigint_trap (); /* Causes SIGINT to be passed on to the + set_sigint_trap (); /* Causes SIGINT to be passed on to the attached process. */ set_sigio_trap (); @@ -597,8 +596,7 @@ wait_fd () pi->had_event = 1; #endif - if (attach_flag) - clear_sigint_trap(); + clear_sigint_trap (); clear_sigio_trap (); #ifndef LOSING_POLL |