* linux-nat.c (TRAP_IS_SYSCALL, TRAP_REMOVE_SYSCALL_FLAG): Delete.
authorPedro Alves <palves@redhat.com>
Fri, 2 Oct 2009 16:51:04 +0000 (16:51 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 2 Oct 2009 16:51:04 +0000 (16:51 +0000)
commitca2163eb33ba5572fd2988bda8bb80608e6c36be
tree86e5c3a39a572b01ce08fd12c777054009630ea1
parenta71e0887e3568d4e38601402d00f40493e696601
* 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.
gdb/ChangeLog
gdb/infrun.c
gdb/linux-nat.c
This page took 0.025442 seconds and 4 git commands to generate.