diff options
author | Pedro Alves <palves@redhat.com> | 2009-10-02 16:51:04 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-10-02 16:51:04 +0000 |
commit | ca2163eb33ba5572fd2988bda8bb80608e6c36be (patch) | |
tree | 86e5c3a39a572b01ce08fd12c777054009630ea1 /libiberty/testsuite | |
parent | a71e0887e3568d4e38601402d00f40493e696601 (diff) | |
download | gdb-ca2163eb33ba5572fd2988bda8bb80608e6c36be.zip gdb-ca2163eb33ba5572fd2988bda8bb80608e6c36be.tar.gz gdb-ca2163eb33ba5572fd2988bda8bb80608e6c36be.tar.bz2 |
* linux-nat.c (TRAP_IS_SYSCALL, TRAP_REMOVE_SYSCALL_FLAG): Delete.
(SYSCALL_SIGTRAP): New.
(status_to_str): Adjust.
(get_pending_status): Pending events in lp->waitstatus don't map
to any signal. Simplify.
(linux_handle_syscall_trap): New.
(linux_handle_extended_wait): When handling PTRACE_EVENT_CLONE
events, use linux_ops->to_resume instead of direct ptrace with
PTRACE_CONT. Remove all TRAP_IS_SYSCALL handling.
(wait_lwp): Handle syscall traps with linux_handle_syscall_trap,
and clear the sysgood bit.
(status_callback): Make it clearer and add comments.
(cancel_breakpoints_callback): Ignore if LP has waitstatus set.
(linux_nat_filter_event): Handle syscall traps with
linux_handle_syscall_trap, and clear the sysgood bit. Move the
check for storing siginfo to after handling extended statuses and
syscall traps. Store status in the lwp object.
(linux_wait_1): Don't swap the pending status out of the lwp
object until after deciding we found an lwp with an interesting
event. Requeue a new pending signal if we find one while getting
rid or a pending SIGSTOP we sent ourselves. Don't clear the
sysgood bit here.
* infrun.c (deal_with_syscall_event): Rename to ...
(handle_syscall_event): ... this. Always context switch and set
stop_pc, even if not catching the syscall. If not catching the
syscall, always resume with keep_going.
(handle_inferior_event): Adjust.
Diffstat (limited to 'libiberty/testsuite')
0 files changed, 0 insertions, 0 deletions