mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-23 13:21:43 +08:00
2001-05-25 Michael Snyder <msnyder@redhat.com>
* lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.
This commit is contained in:
parent
4dc8668677
commit
5f885618b6
@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
2001-05-25 Michael Snyder <msnyder@redhat.com>
|
2001-05-25 Michael Snyder <msnyder@redhat.com>
|
||||||
|
|
||||||
|
* lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.
|
||||||
* remote.c (remote_write_bytes): Update 'p' packet pointer.
|
* remote.c (remote_write_bytes): Update 'p' packet pointer.
|
||||||
|
|
||||||
2001-05-25 Jim Blandy <jimb@redhat.com>
|
2001-05-25 Jim Blandy <jimb@redhat.com>
|
||||||
|
@ -610,6 +610,15 @@ stop_wait_callback (struct lwp_info *lp, void *data)
|
|||||||
- DECR_PC_AFTER_BREAK,
|
- DECR_PC_AFTER_BREAK,
|
||||||
pid_to_ptid (pid));
|
pid_to_ptid (pid));
|
||||||
}
|
}
|
||||||
|
else if (WSTOPSIG (status) == SIGINT &&
|
||||||
|
signal_pass_state (SIGINT) == 0)
|
||||||
|
{
|
||||||
|
/* Since SIGINT gets forwarded to the entire process group
|
||||||
|
(in the case where ^C/BREAK is typed at the tty/console),
|
||||||
|
just ignore all SIGINT events from all lwp's except for
|
||||||
|
the one that was caught by lin_lwp_wait. */
|
||||||
|
; /* Don't save. Signal will disappear into oblivion. */
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (debug_lin_lwp)
|
if (debug_lin_lwp)
|
||||||
@ -618,7 +627,7 @@ stop_wait_callback (struct lwp_info *lp, void *data)
|
|||||||
strsignal (WSTOPSIG (status)), pid);
|
strsignal (WSTOPSIG (status)), pid);
|
||||||
|
|
||||||
/* The thread was stopped with a signal other than
|
/* The thread was stopped with a signal other than
|
||||||
SIGSTOP, and didn't accidentiliy trip a breakpoint.
|
SIGSTOP, and didn't accidentally trip a breakpoint.
|
||||||
Record the wait status. */
|
Record the wait status. */
|
||||||
lp->status = status;
|
lp->status = status;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user