From 1e75b5f53099318e67d54e805550ca740cc46533 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Wed, 31 Aug 1994 20:42:10 +0000 Subject: * 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. --- gdb/procfs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gdb/procfs.c') 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 -- cgit v1.1