* 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.
This commit is contained in:
Jim Kingdon 1994-08-31 20:42:10 +00:00
parent 6bd3f7654d
commit 1e75b5f530
4 changed files with 15 additions and 13 deletions

View File

@ -1,5 +1,13 @@
Wed Aug 31 09:17:02 1994 Jim Kingdon (kingdon@cygnus.com) Wed Aug 31 09:17:02 1994 Jim Kingdon (kingdon@cygnus.com)
* 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.
* value.h (struct value): Change literal_data from PTR to char *, * value.h (struct value): Change literal_data from PTR to char *,
since that is the way it is used. since that is the way it is used.

View File

@ -603,8 +603,7 @@ child_wait (pid, ourstatus)
{ {
int sig; 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. */ attached process. */
pid = wait (&status); pid = wait (&status);
#ifdef SPARC #ifdef SPARC
@ -614,8 +613,7 @@ child_wait (pid, ourstatus)
save_errno = errno; save_errno = errno;
if (attach_flag) clear_sigint_trap();
clear_sigint_trap();
if (pid == -1) if (pid == -1)
{ {

View File

@ -570,8 +570,7 @@ wait_fd ()
int num_fds; int num_fds;
int i; 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. */ attached process. */
set_sigio_trap (); set_sigio_trap ();
@ -597,8 +596,7 @@ wait_fd ()
pi->had_event = 1; pi->had_event = 1;
#endif #endif
if (attach_flag) clear_sigint_trap ();
clear_sigint_trap();
clear_sigio_trap (); clear_sigio_trap ();
#ifndef LOSING_POLL #ifndef LOSING_POLL

View File

@ -402,9 +402,8 @@ child_wait(pid, status)
#endif #endif
do { do {
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. */
attached process. */
save_errno = errno; save_errno = errno;
got_sigchld = 0; got_sigchld = 0;
@ -415,8 +414,7 @@ child_wait(pid, status)
sigsuspend(&set); sigsuspend(&set);
} }
if (attach_flag) clear_sigint_trap();
clear_sigint_trap();
rv = mptrace(XPT_STOPSTAT, 0, (char *)&pt, 0); rv = mptrace(XPT_STOPSTAT, 0, (char *)&pt, 0);
if (-1 == rv) { if (-1 == rv) {