binutils-gdb/gdb/features
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
..
arm Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
i386 Support the fs_base and gs_base registers on i386. 2019-03-12 13:39:02 -07:00
riscv gdb/riscv: Use legacy register numbers in default target description 2019-02-26 22:57:35 +02:00
rs6000 Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sparc Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
aarch64-core.c
aarch64-core.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
aarch64-fpu.c
aarch64-fpu.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
aarch64-sve.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
aarch64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
arc-arcompact.c
arc-arcompact.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
arc-v2.c
arc-v2.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
btrace-conf.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
btrace.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
feature_to_c.sh Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
gdb-target.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
gdbserver-regs.xsl
library-list-aix.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
library-list-svr4.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
library-list.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
m68k-core.xml
Makefile Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
microblaze-core.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
microblaze-stack-protect.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
microblaze-with-stack-protect.c
microblaze-with-stack-protect.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
microblaze.c
microblaze.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips64-cp0.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips64-cpu.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips64-dsp-linux.c
mips64-dsp-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips64-dsp.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips64-fpu.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips64-linux.c
mips64-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips-cp0.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips-cpu.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips-dsp-linux.c
mips-dsp-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips-dsp.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips-fpu.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips-linux.c
mips-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nds32-core.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nds32-fpu.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nds32-system.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nds32.c
nds32.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nios2-cpu.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nios2-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nios2.c
nios2.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
number-regs.xsl
or1k-core.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
or1k.c
or1k.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
osdata.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-acr.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-core32.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-core64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-fpr.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-gs-linux64.c
s390-gs-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-gs.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-gsbc.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-linux32.c
s390-linux32.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-linux32v1.c
s390-linux32v1.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-linux32v2.c
s390-linux32v2.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-linux64.c
s390-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-linux64v1.c
s390-linux64v1.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-linux64v2.c
s390-linux64v2.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-tdb.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-te-linux64.c
s390-te-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-tevx-linux64.c
s390-tevx-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-vx-linux64.c
s390-vx-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-vx.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-core64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-gs-linux64.c
s390x-gs-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-linux64.c
s390x-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-linux64v1.c
s390x-linux64v1.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-linux64v2.c
s390x-linux64v2.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-te-linux64.c
s390x-te-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-tevx-linux64.c
s390x-tevx-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-vx-linux64.c
s390x-vx-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sort-regs.xsl
threads.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tic6x-c6xp.c
tic6x-c6xp.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tic6x-c62x-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tic6x-c64x-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tic6x-c64xp-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tic6x-core.c
tic6x-core.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tic6x-gp.c
tic6x-gp.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
traceframe-info.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
xinclude.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00