aboutsummaryrefslogtreecommitdiff
path: root/gdb/symm-nat.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-08-31 20:42:10 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-08-31 20:42:10 +0000
commit1e75b5f53099318e67d54e805550ca740cc46533 (patch)
tree50477b10252f94741a7224f88c2bce6a0a246996 /gdb/symm-nat.c
parent6bd3f7654dba32de268ccff7752ecbdb0b737f83 (diff)
downloadgdb-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/symm-nat.c')
-rw-r--r--gdb/symm-nat.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/symm-nat.c b/gdb/symm-nat.c
index 66183aa..6f235bd 100644
--- a/gdb/symm-nat.c
+++ b/gdb/symm-nat.c
@@ -402,9 +402,8 @@ child_wait(pid, status)
#endif
do {
- if (attach_flag)
- set_sigint_trap(); /* Causes SIGINT to be passed on to the
- attached process. */
+ set_sigint_trap(); /* Causes SIGINT to be passed on to the
+ attached process. */
save_errno = errno;
got_sigchld = 0;
@@ -415,8 +414,7 @@ child_wait(pid, status)
sigsuspend(&set);
}
- if (attach_flag)
- clear_sigint_trap();
+ clear_sigint_trap();
rv = mptrace(XPT_STOPSTAT, 0, (char *)&pt, 0);
if (-1 == rv) {