old-cross-binutils/gdb/config/i386
Gary Benson 8e5d407004 Move low-level Linux x86 debug register code to a shared file
This commit moves the now-identical low-level Linux x86 debug register
code from gdb/x86-linux-nat.c and gdb/gdbserver/linux-x86-low.c into a
new shared file gdb/nat/x86-linux-dregs.c.

gdb/ChangeLog:

	* nat/x86-linux-dregs.h: New file.
	* nat/x86-linux-dregs.c: Likewise.
	* Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
	(x86-linux-dregs.o): New rule.
	* config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
	* config/i386/linux64.mh (NATDEPFILES): Likewise.
	* x86-linux-nat.c: Include nat/x86-linux-dregs.h.
	(u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
	(x86_linux_dr_get): Likewise.
	(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_update_debug_registers): Likewise.

gdb/gdbserver/ChangeLog:

	* Makefile.in (x86-linux-dregs.o): New rule.
	* configure.srv: Add x86-linux-dregs.o to relevant targets.
	* linux-x86-low.c: Include nat/x86-linux-dregs.h.
	(u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
	(x86_linux_dr_get): Likewise.
	(x86_linux_dr_set): Likewise.
	(update_debug_registers_callback): Likewise.
	(x86_linux_dr_set_addr): Likewise.
	(x86_linux_dr_get_addr): Likewise.
	(x86_linux_dr_set_control): Likewise.
	(x86_linux_dr_get_control): Likewise.
	(x86_linux_dr_get_status): Likewise.
	(x86_linux_update_debug_registers): Likewise.
2015-03-24 14:05:45 +00:00
..
cygwin.mh Rename 32- and 64-bit Intel files from "i386" to "x86" 2014-09-02 16:54:08 +01:00
cygwin64.mh Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
darwin.mh Rename 32- and 64-bit Intel files from "i386" to "x86" 2014-09-02 16:54:08 +01:00
fbsd.mh Rename 32- and 64-bit Intel files from "i386" to "x86" 2014-09-02 16:54:08 +01:00
fbsd64.mh Rename 32- and 64-bit Intel files from "i386" to "x86" 2014-09-02 16:54:08 +01:00
go32.mh Don't set CC in config/i386/go32.mh 2014-11-19 15:44:35 +08:00
i386gnu.mh Use core regset iterators on GNU Hurd 2014-12-01 13:42:41 +01:00
i386sol2.mh gdb/ 2013-04-11 14:13:44 +00:00
linux.mh Move low-level Linux x86 debug register code to a shared file 2015-03-24 14:05:45 +00:00
linux64.mh Move low-level Linux x86 debug register code to a shared file 2015-03-24 14:05:45 +00:00
mingw.mh Rename 32- and 64-bit Intel files from "i386" to "x86" 2014-09-02 16:54:08 +01:00
mingw64.mh Rename 32- and 64-bit Intel files from "i386" to "x86" 2014-09-02 16:54:08 +01:00
nbsd64.mh
nbsdelf.mh
nm-fbsd.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
nm-i386gnu.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
nto.mh
obsd.mh Enable rhreads support on OpenBSD/i386. 2014-03-01 15:29:34 +01:00
obsd64.mh Enable rthreads support on OpenBSD/amd64. 2014-03-01 11:49:58 +01:00
sol2-64.mh gdb/ 2013-04-11 14:13:44 +00:00