mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-25 05:00:01 +00:00
* 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:
parent
6bd3f7654d
commit
1e75b5f530
@ -1,5 +1,13 @@
|
||||
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 *,
|
||||
since that is the way it is used.
|
||||
|
||||
|
@ -603,7 +603,6 @@ child_wait (pid, ourstatus)
|
||||
{
|
||||
int sig;
|
||||
|
||||
if (attach_flag)
|
||||
set_sigint_trap(); /* Causes SIGINT to be passed on to the
|
||||
attached process. */
|
||||
pid = wait (&status);
|
||||
@ -614,7 +613,6 @@ child_wait (pid, ourstatus)
|
||||
|
||||
save_errno = errno;
|
||||
|
||||
if (attach_flag)
|
||||
clear_sigint_trap();
|
||||
|
||||
if (pid == -1)
|
||||
|
@ -570,7 +570,6 @@ wait_fd ()
|
||||
int num_fds;
|
||||
int i;
|
||||
|
||||
if (attach_flag)
|
||||
set_sigint_trap (); /* Causes SIGINT to be passed on to the
|
||||
attached process. */
|
||||
set_sigio_trap ();
|
||||
@ -597,7 +596,6 @@ wait_fd ()
|
||||
pi->had_event = 1;
|
||||
#endif
|
||||
|
||||
if (attach_flag)
|
||||
clear_sigint_trap ();
|
||||
clear_sigio_trap ();
|
||||
|
||||
|
@ -402,7 +402,6 @@ child_wait(pid, status)
|
||||
#endif
|
||||
|
||||
do {
|
||||
if (attach_flag)
|
||||
set_sigint_trap(); /* Causes SIGINT to be passed on to the
|
||||
attached process. */
|
||||
save_errno = errno;
|
||||
@ -415,7 +414,6 @@ child_wait(pid, status)
|
||||
sigsuspend(&set);
|
||||
}
|
||||
|
||||
if (attach_flag)
|
||||
clear_sigint_trap();
|
||||
|
||||
rv = mptrace(XPT_STOPSTAT, 0, (char *)&pt, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user