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/lynx-nat.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/lynx-nat.c')
-rw-r--r-- | gdb/lynx-nat.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/lynx-nat.c b/gdb/lynx-nat.c index 3d7c92d..95a3d91 100644 --- a/gdb/lynx-nat.c +++ b/gdb/lynx-nat.c @@ -603,8 +603,7 @@ child_wait (pid, ourstatus) { int sig; - 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. */ pid = wait (&status); #ifdef SPARC @@ -614,8 +613,7 @@ child_wait (pid, ourstatus) save_errno = errno; - if (attach_flag) - clear_sigint_trap(); + clear_sigint_trap(); if (pid == -1) { |