binutils-gdb/gdb/nat
Tom Tromey 8009206ae2 Remove some GDBSERVER checks from linux-ptrace
This patch removes some GDBSERVER checks from nat/linux-ptrace.c.
Currently the code uses a compile-time check to decide whether some
flags should be used.  This changes the code to instead let users of
the module specify an additional set of flags; and then changes gdb's
linux-nat.c to call this function.  At some later date, when the back
ends are fully merged, we will be able to remove this function again.

gdb/
2014-07-24  Tom Tromey  <tromey@redhat.com>
	    Gary Benson  <gbenson@redhat.com>

	* nat/linux-ptrace.c (additional_flags): New global.
	(linux_test_for_tracesysgood, linux_test_for_tracefork): Use
	additional_flags; don't check GDBSERVER.
	(linux_ptrace_set_additional_flags): New function.
	* nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
	Declare.
	* linux-nat.c (_initialize_linux_nat): Call
	linux_ptrace_set_additional_flags.
2014-07-24 15:06:39 +01: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
i386-cpuid.h Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00
i386-dregs.c x86 Linux watchpoints: Couldn't write debug register: Invalid argument. 2014-06-23 16:44:04 +01:00
i386-dregs.h Vectorize gdbserver x86 debug register accessors 2014-06-20 13:05:50 +01:00
i386-gcc-cpuid.h Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00
linux-btrace.c Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00
linux-btrace.h Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00
linux-nat.h
linux-osdata.c Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00
linux-osdata.h Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00
linux-procfs.c Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +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 Remove some GDBSERVER checks from linux-ptrace 2014-07-24 15:06:39 +01:00
linux-ptrace.h Remove some GDBSERVER checks from linux-ptrace 2014-07-24 15:06:39 +01:00
linux-waitpid.c Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00
linux-waitpid.h Move linux-nat.c:status_to_str to nat/linux-waitpid.c. 2014-02-27 14:30:08 +00:00
mips-linux-watch.c Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00
mips-linux-watch.h Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00