aboutsummaryrefslogtreecommitdiff
path: root/binutils/dep-in.sed
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-01-07 19:41:06 +0000
committerPedro Alves <palves@redhat.com>2015-01-09 14:40:53 +0000
commit8a99810d42b1b4539112c7a50183f3dd807773c2 (patch)
tree66e3ecfa29a5d80e3edc4b597184a7f5c12a9d28 /binutils/dep-in.sed
parentf7ce857f51e33c66100bcf91b346ee1baf734e53 (diff)
downloadgdb-8a99810d42b1b4539112c7a50183f3dd807773c2.zip
gdb-8a99810d42b1b4539112c7a50183f3dd807773c2.tar.gz
gdb-8a99810d42b1b4539112c7a50183f3dd807773c2.tar.bz2
linux-nat.c: clean up pending status checking and resuming LWPs
Whenever we resume an LWP, we must clear a few flags and flush the LWP's register cache. We actually currently flush the register cache of all LWPs, but that's unnecessary. This patch makes us flush the register cache of only the LWP that is resumed. Instead of open coding all that in many places, we use a helper function. Likewise, we have two fields in the LWP structure where a pending status may be recorded. Add a helper predicate that checks both and use it throughout instead of open coding the checks. gdb/ 2015-01-09 Pedro Alves <palves@redhat.com> * linux-nat.c (linux_resume_one_lwp): New function. (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp. (linux_nat_resume): Use lwp_status_pending_p and linux_resume_one_lwp. (linux_handle_syscall_trap): Use linux_resume_one_lwp. (linux_handle_extended_wait): Use linux_resume_one_lwp. (status_callback, running_callback): Use lwp_status_pending_p. (lwp_status_pending_p): New function. (stop_and_resume_callback): Use lwp_status_pending_p. (linux_nat_filter_event): Use linux_resume_one_lwp. (linux_nat_wait_1): Always use status_callback to look for an LWP with a pending status. Use linux_resume_one_lwp. (resume_stopped_resumed_lwps): Use lwp_status_pending_p and linux_resume_one_lwp.
Diffstat (limited to 'binutils/dep-in.sed')
0 files changed, 0 insertions, 0 deletions