binutils-gdb/gdb/testsuite/gdb.arch
Ruslan Kabatsayev b593e3d9b0 Fix wrong output of x87 registers due to truncation to double on amd64
When `info float` is used on an AMD64 system, GDB prints
floating-point values of x87 registers with raw contents like
0x361a867a8e0527397ce0 or 0xc4f988454a1ddd3cfdab wrongly.

This happens due to truncation to double, after which the former
becomes 0.0, and the latter becomes negative infinity.  This is caused
by failed detection of x86-64 host, which results in setting
gdb_host_{float,double,long_double}_format to zeros.

This commit fixes this misdetection, and adds a test to make sure
future commits don't introduce a regression here.

gdb/ChangeLog:
2015-12-09  Ruslan Kabatsayev  <b7.10110111@gmail.com>

	PR gdb/18702
	* configure.host: Fix detection of x86_64 host when setting
	floatformats.

gdb/testsuite/ChangeLog:
2015-12-09  Ruslan Kabatsayev  <b7.10110111@gmail.com>
	    Pedro Alves  <pedro@redhat.com>

	PR gdb/18702
	Add checking of floatformats setup on x86_64 hosts.
	* gdb.arch/i386-float.S (main): Load bigval and smallval.
	(smallval, bigval): New labels/constants.
	* gdb.arch/i386-float.exp: Use with_test_prefix and test "info
	float" after loading bigval and smallval.
2015-12-09 12:17:40 +00:00
..
Makefile.in
aarch64-atomic-inst.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
aarch64-atomic-inst.exp New proc is_aarch64_target 2015-07-07 16:58:20 +01:00
aarch64-fp.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
aarch64-fp.exp New proc is_aarch64_target 2015-07-07 16:58:20 +01:00
alpha-step.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
alpha-step.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
altivec-abi.c
altivec-abi.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
altivec-regs.c
altivec-regs.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-byte.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-disp-step.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-disp-step.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-dword.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-entry-value-inline.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-entry-value-inline.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-entry-value-inline.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-entry-value-param.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-entry-value-param.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-entry-value-param.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-entry-value-paramref.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-entry-value-paramref.cc Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-entry-value-paramref.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-entry-value.cc Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-entry-value.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-entry-value.s Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-i386-address.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-i386-address.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-invalid-stack-middle.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-invalid-stack-middle.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-invalid-stack-middle.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-invalid-stack-top.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-invalid-stack-top.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-optimout-repeat.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-optimout-repeat.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-optimout-repeat.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-prologue-skip.S Do not skip prologue for asm (.S) files 2015-06-26 15:11:14 +02:00
amd64-prologue-skip.exp Do not skip prologue for asm (.S) files 2015-06-26 15:11:14 +02:00
amd64-prologue-xmm.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-prologue-xmm.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-prologue-xmm.s Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-pseudo.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-stap-optional-prefix.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-stap-optional-prefix.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-stap-special-operands.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-stap-three-arg-disp.S
amd64-stap-three-arg-disp.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-stap-triplet.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-stap-triplet.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-stap-wrong-subexp.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-stap-wrong-subexp.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-tailcall-cxx.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-tailcall-cxx1.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-tailcall-cxx1.cc Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-tailcall-cxx2.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-tailcall-cxx2.cc Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-tailcall-noret.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-tailcall-noret.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-tailcall-noret.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-tailcall-ret.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-tailcall-ret.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-tailcall-ret.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-tailcall-self.S PR symtab/18392 2015-06-01 14:02:34 +02:00
amd64-tailcall-self.c PR symtab/18392 2015-06-01 14:02:34 +02:00
amd64-tailcall-self.exp PR symtab/18392 2015-06-01 14:02:34 +02:00
amd64-word.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
arm-bl-branch-dest.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
arm-bl-branch-dest.exp New proc is_aarch32_target 2015-07-07 16:58:19 +01:00
arm-disp-step.S [arm] Fix displaced stepping for thumb alu reg instruction 2015-04-10 10:33:01 +01:00
arm-disp-step.exp New proc is_aarch32_target 2015-07-07 16:58:19 +01:00
arm-neon.c New test gdb.arch/arm-neon.exp 2015-11-27 14:50:30 +00:00
arm-neon.exp New test gdb.arch/arm-neon.exp 2015-11-27 14:50:30 +00:00
avr-flash-qualifier.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
avr-flash-qualifier.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
cordic.ko.bz2 SEGV in ppc64_elf_get_synthetic_symtab reading a separate debug file 2015-02-26 14:08:01 +01:00
cordic.ko.debug.bz2 SEGV in ppc64_elf_get_synthetic_symtab reading a separate debug file 2015-02-26 14:08:01 +01:00
disp-step-insn-reloc.exp New test case gdb.arch/disp-step-insn-reloc.exp 2015-10-12 11:28:38 +01:00
e500-abi.c
e500-abi.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
e500-prologue.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
e500-prologue.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
e500-regs.c
e500-regs.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
ftrace-insn-reloc.exp Add a gdb.trace test for instruction relocation 2015-09-21 15:01:05 +01:00
gdb1291.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
gdb1291.s Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
gdb1431.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
gdb1431.s Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
gdb1558.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
gdb1558.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-avx.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-avx.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-avx512.c Fix MPX and AVX512 tests for path changes. 2015-06-10 09:58:05 +02:00
i386-avx512.exp Fix MPX and AVX512 tests for path changes. 2015-06-10 09:58:05 +02:00
i386-biarch-core.core.bz2 Testsuite patch for: i386: Fix internal error when prstatus in core file is too big 2015-02-21 15:24:20 +01:00
i386-biarch-core.exp Fix gdb.arch/i386-biarch-core.exp FAIL on i386. 2015-07-16 18:01:22 +02:00
i386-bp_permanent.c Remove testsuite compile errors with GCC5. 2015-01-25 18:50:56 +01:00
i386-bp_permanent.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-byte.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-cfi-notcurrent.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-cfi-notcurrent.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-disp-step.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-disp-step.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-dr3-watch.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-dr3-watch.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-float.S Fix wrong output of x87 registers due to truncation to double on amd64 2015-12-09 12:17:40 +00:00
i386-float.exp Fix wrong output of x87 registers due to truncation to double on amd64 2015-12-09 12:17:40 +00:00
i386-gnu-cfi-asm.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-gnu-cfi.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-gnu-cfi.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-mpx-map.c Fix non stopping breakpoint on newer compilers. 2015-11-04 11:09:03 +01:00
i386-mpx-map.exp Changing compiler flags for MPX tests. 2015-11-04 11:09:02 +01:00
i386-mpx.c Obvious indentation fixes on test sample and test file for MPX registers. 2015-06-10 09:58:05 +02:00
i386-mpx.exp Changing compiler flags for MPX tests. 2015-11-04 11:09:02 +01:00
i386-permbkpt.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-permbkpt.exp testsuite: Define and use gdb_target_symbol_prefix_flags_asm. 2015-11-07 11:03:49 -07:00
i386-prologue.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-prologue.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-pseudo.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-signal.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-signal.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-size-overlap.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-size-overlap.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-size.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-size.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-sse-stack-align.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-sse-stack-align.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-sse-stack-align.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-sse.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-sse.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-stap-eval-lang-ada.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-stap-eval-lang-ada.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-stap-eval-lang-ada.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-unwind.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-unwind.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-word.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
ia64-breakpoint-shadow.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
ia64-breakpoint-shadow.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
insn-reloc.c More tests in gdb.arch/insn-reloc.c 2015-10-12 11:28:38 +01:00
iwmmxt-regs.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
iwmmxt-regs.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mips-octeon-bbit.c
mips-octeon-bbit.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mips16-thunks-inmain.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mips16-thunks-main.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mips16-thunks-sin.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mips16-thunks-sinfrob.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mips16-thunks-sinfrob16.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mips16-thunks-sinmain.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mips16-thunks-sinmips16.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mips16-thunks.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
pa-nullify.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
pa-nullify.s
pa64-nullify.s
powerpc-aix-prologue.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
powerpc-aix-prologue.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
powerpc-d128-regs.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
powerpc-d128-regs.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
powerpc-power.exp Fix rfebb gdb test cases. 2015-06-23 13:33:05 -05:00
powerpc-power.s Fix rfebb gdb test cases. 2015-06-23 13:33:05 -05:00
powerpc-prologue.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
powerpc-prologue.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
powerpc-stackless.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
powerpc-stackless.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
ppc-dfp.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
ppc-dfp.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
ppc-fp.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
ppc-fp.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
ppc64-atomic-inst.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
ppc64-atomic-inst.exp PPC64: Fix gdb.arch/ppc64-atomic-inst.exp with displaced stepping 2015-08-07 17:26:21 +01:00
ppc64-symtab-cordic.exp Restrict gdb.arch/ppc64-symtab-cordic.exp to ppc64 targets. 2015-07-30 12:06:29 -07:00
s390-multiarch.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
s390-multiarch.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
s390-tdbregs.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
s390-tdbregs.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
s390-vregs.S s390-vregs.exp: Avoid compile errors with older GCCs and on 31-bit targets 2015-04-16 13:03:48 +02:00
s390-vregs.exp s390-vregs.exp: Avoid compile errors with older GCCs and on 31-bit targets 2015-04-16 13:03:48 +02:00
sparc-sysstep.c sparc: fix build of gdb/testsuite/gdb.arch/sparc-sysstep.c 2015-11-20 10:48:56 +01:00
sparc-sysstep.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
spu-info.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
spu-info.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
spu-ls.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
spu-ls.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
thumb-bx-pc.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
thumb-bx-pc.exp New proc is_aarch32_target 2015-07-07 16:58:19 +01:00
thumb-prologue.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
thumb-prologue.exp New proc is_aarch32_target 2015-07-07 16:58:19 +01:00
thumb-singlestep.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
thumb-singlestep.exp New proc is_aarch32_target 2015-07-07 16:58:19 +01:00
thumb2-it.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
thumb2-it.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
vsx-regs.c
vsx-regs.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00