binutils-gdb/gdb/features/i386
John Baldwin 1163a4b7a3 Support the fs_base and gs_base registers on i386.
As on amd64, these registers hold the base address of the fs and gs
segments, respectively.  For i386 these two registers are 32 bits.

gdb/ChangeLog:

	* amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
	Update calls to i386_target_description to add 'segments'
	parameter.
	* amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum.  Don't
	add segment base registers.
	* arch/i386.c (i386_create_target_description): Add 'segments'
	parameter to enable segment base registers.
	* arch/i386.h (i386_create_target_description): Likewise.
	* features/i386/32bit-segments.xml: New file.
	* features/i386/32bit-segments.c: Generate.
	* i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
	call to i386_target_description to add 'segments' parameter.
	* i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
	* i386-go32-tdep.c (i386_go32_init_abi): Likewise.
	* i386-linux-tdep.c (i386_linux_read_description): Likewise.
	* i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
	if feature is present.
	(i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
	Add 'segments' parameter to call to i386_target_description.
	(i386_target_description): Add 'segments' parameter to enable
	segment base registers.
	(_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
	to call to i386_target_description.
	* i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
	(enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
	Define I386_NUM_REGS.
	(i386_target_description): Add 'segments' parameter to enable
	segment base registers.

gdb/gdbserver/ChangeLog:

	* linux-x86-tdesc.c (i386_linux_read_description): Update call to
	i386_create_target_description for 'segments' parameter.
	* lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
	* nto-x86-low.c (nto_x86_arch_setup): Likewise.
	* win32-i386-low.c (i386_arch_setup): Likewise.
2019-03-12 13:39:02 -07:00
..
32bit-avx.c
32bit-avx.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
32bit-avx512.c
32bit-avx512.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
32bit-core.c
32bit-core.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
32bit-linux.c
32bit-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
32bit-mpx.c
32bit-mpx.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
32bit-pkeys.c
32bit-pkeys.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
32bit-segments.c Support the fs_base and gs_base registers on i386. 2019-03-12 13:39:02 -07:00
32bit-segments.xml Support the fs_base and gs_base registers on i386. 2019-03-12 13:39:02 -07:00
32bit-sse.c
32bit-sse.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
64bit-avx.c
64bit-avx.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
64bit-avx512.c
64bit-avx512.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
64bit-core.c
64bit-core.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
64bit-linux.c
64bit-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
64bit-mpx.c
64bit-mpx.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
64bit-pkeys.c
64bit-pkeys.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
64bit-segments.c
64bit-segments.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
64bit-sse.c
64bit-sse.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
amd64-avx-avx512-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
amd64-avx-avx512.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
amd64-avx-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
amd64-avx-mpx-avx512-pku-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
amd64-avx-mpx-avx512-pku.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
amd64-avx-mpx-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
amd64-avx-mpx.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
amd64-avx.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
amd64-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
amd64-mpx-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
amd64-mpx.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
amd64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
i386-avx-avx512-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
i386-avx-avx512.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
i386-avx-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
i386-avx-mpx-avx512-pku-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
i386-avx-mpx-avx512-pku.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
i386-avx-mpx-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
i386-avx-mpx.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
i386-avx.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
i386-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
i386-mmx-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
i386-mmx.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
i386-mpx-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
i386-mpx.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
i386.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
x32-avx-avx512-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
x32-avx-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
x32-core.c
x32-core.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
x32-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00