old-cross-binutils/gdb/nat
Don Breazeal 89a5711c56 Refactor ptrace extended event status.
This commit implements functions for identifying and extracting extended
ptrace event information from a Linux wait status.  These are just
convenience functions intended to hide the ">> 16" used to extract the
event from the wait status word, replacing the hard-coded shift with a more
descriptive function call.  This is preparatory work for implementation of
follow-fork and detach-on-fork for extended-remote linux targets.

gdb/ChangeLog:

	* linux-nat.c (linux_handle_extended_wait): Call
	linux_ptrace_get_extended_event.
	(wait_lwp): Call linux_is_extended_waitstatus.
	(linux_nat_filter_event): Call linux_ptrace_get_extended_event
	and linux_is_extended_waitstatus.
	* nat/linux-ptrace.c (linux_test_for_tracefork): Call
	linux_ptrace_get_extended_event.
	(linux_ptrace_get_extended_event): New function.
	(linux_is_extended_waitstatus): New function.
	* nat/linux-ptrace.h (linux_ptrace_get_extended_event)
	(linux_is_extended_waitstatus): New declarations.

gdb/gdbserver/ChangeLog:

	* linux-low.c (handle_extended_wait): Call
	linux_ptrace_get_extended_event.
	(get_stop_pc, get_detach_signal, linux_low_filter_event): Call
	linux_is_extended_waitstatus.

---
2014-09-19 10:54:34 -07:00
..
gdb_thread_db.h Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00
glibc_thread_db.h Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00
linux-btrace.c Remove GDBSERVER uses from linux-btrace.c 2014-09-12 10:11:42 +01:00
linux-btrace.h Remove GDBSERVER uses from linux-btrace.c 2014-09-12 10:11:42 +01:00
linux-nat.h
linux-osdata.c Include common-defs.h instead of defs.h/server.h in shared code 2014-09-12 10:11:42 +01:00
linux-osdata.h Move ptid.h to common-defs.h 2014-08-07 09:06:44 +01:00
linux-procfs.c Include common-defs.h instead of defs.h/server.h in shared code 2014-09-12 10:11:42 +01:00
linux-procfs.h Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00
linux-ptrace.c Refactor ptrace extended event status. 2014-09-19 10:54:34 -07:00
linux-ptrace.h Refactor ptrace extended event status. 2014-09-19 10:54:34 -07:00
linux-waitpid.c Clarify GDBSERVER use in linux-waitpid.c 2014-09-12 11:03:49 +01:00
linux-waitpid.h
mips-linux-watch.c Include common-defs.h instead of defs.h/server.h in shared code 2014-09-12 10:11:42 +01:00
mips-linux-watch.h Do not include defs.h or server.h in any header file 2014-07-31 13:25:01 +01:00
x86-cpuid.h Rename 32- and 64-bit Intel files from "i386" to "x86" 2014-09-02 16:54:08 +01:00
x86-dregs.c Remove GDBSERVER uses from x86-dregs.c 2014-09-12 10:11:42 +01:00
x86-dregs.h x86 debug address register clarifications 2014-09-03 12:40:49 +01:00
x86-gcc-cpuid.h Rename 32- and 64-bit Intel files from "i386" to "x86" 2014-09-02 16:54:08 +01:00