old-cross-binutils/gdb/config
Gary Benson 040baaf6de Move duplicated code into new files
This commit moves the duplicated code in {i386,amd64}-linux-nat.c
into the new files x86-linux-nat.[ch].  Additionally, a new
file i386-linux-nat.h was required to expose a value required
by the 32-bit code in x86-linux-nat.c.

gdb/
2014-07-11  Gary Benson  <gbenson@redhat.com>

	* i386-linux-nat.h: New file.
	* x86-linux-nat.h: Likewise.
	* x86-linux-nat.c: Likewise.
	* Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
	* config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
	* config/i386/linux64.mh (NATDEPFILES): Likewise.
	* amd64-linux-nat.c (x86-linux-nat.h): New include.
	(PTRACE_GETREGSET): Now in x86-linux-nat.h.
	(PTRACE_SETREGSET): Likewise.
	(arch_lwp_info): Now in x86-linux-nat.c.
	(have_ptrace_getregset): Now in x86-linux-nat.h.
	(x86_linux_dr_get): Now in x86-linux-nat.c.
	(x86_linux_dr_set): Likewise.
	(x86_linux_dr_get_addr): Likewise.
	(x86_linux_dr_get_control): Likewise.
	(x86_linux_dr_get_status): Likewise.
	(update_debug_registers_callback): Likewise.
	(x86_linux_dr_set_control): Likewise.
	(x86_linux_dr_set_addr): Likewise.
	(x86_linux_prepare_to_resume): Likewise.
	(x86_linux_new_thread): Likewise.
	(x86_linux_new_fork): Likewise.
	(x86_linux_get_thread_area): Likewise.
	(super_post_startup_inferior): Likewise.
	(x86_linux_child_post_startup_inferior): Likewise.
	(AMD64_LINUX_USER64_CS): Likewise.
	(AMD64_LINUX_X32_DS): Likewise.
	(x86_linux_read_description): Likewise.
	(x86_linux_enable_btrace): Likewise.
	(x86_linux_disable_btrace): Likewise.
	(x86_linux_teardown_btrace): Likewise.
	(x86_linux_read_btrace): Likewise.
	(x86_linux_create_target): Likewise.
	(x86_linux_add_target): Likewise.
	* i386-linux-nat.c (x86-linux-nat.h): New include.
	(PTRACE_GETREGSET): Now in x86-linux-nat.h.
	(PTRACE_SETREGSET): Likewise.
	(arch_lwp_info): Now in x86-linux-nat.c.
	(have_ptrace_getregset): Now in x86-linux-nat.h.
	(x86_linux_dr_get): Now in x86-linux-nat.c.
	(x86_linux_dr_set): Likewise.
	(x86_linux_dr_get_addr): Likewise.
	(x86_linux_dr_get_control): Likewise.
	(x86_linux_dr_get_status): Likewise.
	(update_debug_registers_callback): Likewise.
	(x86_linux_dr_set_control): Likewise.
	(x86_linux_dr_set_addr): Likewise.
	(x86_linux_prepare_to_resume): Likewise.
	(x86_linux_new_thread): Likewise.
	(x86_linux_new_fork): Likewise.
	(x86_linux_get_thread_area): Likewise.
	(super_post_startup_inferior): Likewise.
	(x86_linux_child_post_startup_inferior): Likewise.
	(AMD64_LINUX_USER64_CS): Likewise.
	(AMD64_LINUX_X32_DS): Likewise.
	(x86_linux_read_description): Likewise.
	(x86_linux_enable_btrace): Likewise.
	(x86_linux_disable_btrace): Likewise.
	(x86_linux_teardown_btrace): Likewise.
	(x86_linux_read_btrace): Likewise.
	(x86_linux_create_target): Likewise.
	(x86_linux_add_target): Likewise.
2014-07-11 12:24:26 +01:00
..
aarch64 Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
alpha Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
arm Remove a.out NetBSD and OpenBSD hosts 2013-09-24 13:48:44 +00:00
djgpp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
i386 Move duplicated code into new files 2014-07-11 12:24:26 +01:00
ia64 Unify ptrace options discovery code and make both GDB and 2013-08-22 23:46:30 +00:00
m32r Unify ptrace options discovery code and make both GDB and 2013-08-22 23:46:30 +00:00
m68k Remove solib-sunos.c 2013-09-24 13:51:55 +00:00
m88k * config/alpha/alpha-linux.mt: Remove file. 2007-11-17 00:54:18 +00:00
mips Enable rthreads support on OpenBSD/mips64. 2014-03-01 12:00:19 +01:00
pa Unify ptrace options discovery code and make both GDB and 2013-08-22 23:46:30 +00:00
powerpc Enable rthreads support on OpenBSD/powerpc. 2014-05-03 22:36:44 +02:00
s390 S/390: Rename source files to *-linux-* 2013-10-30 18:57:08 +01:00
sh * config/alpha/alpha-linux.mt: Remove file. 2007-11-17 00:54:18 +00:00
sparc Enable rthreads supports on OpenBSD/sparc64. 2014-02-28 23:07:55 +01:00
tilegx Unify ptrace options discovery code and make both GDB and 2013-08-22 23:46:30 +00:00
vax Remove a.out NetBSD and OpenBSD hosts 2013-09-24 13:48:44 +00:00
xtensa Unify ptrace options discovery code and make both GDB and 2013-08-22 23:46:30 +00:00
nm-linux.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
nm-nto.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00