binutils-gdb/gdb/testsuite
Joel Brobecker 3256027470 off-by-one max exponent computation in convert_doublest_to_floatformat
Assuming the following variable definition:

    long double inp = 2.0;

On platforms where "long double" is a double precision IEEE flaoting
point, GDB currently behaves as follow:

    (gdb) set variable inp = 1.6e+308l
    (gdb) p inp
    $2 = inf   <<<<---- !!!!

Instead, the value of "inp" should be printed as:

    (gdb) p inp
    $1 = 1.6e+308

The problem is due to a small error in the comparison of the exponent
versus the maximum value this exponent can take, causing us to think
that the value was too big to fit. But it isn't.

gdb/ChangeLog:

        * doublest.c (convert_doublest_to_floatformat): Fix comparison
        against maximum exponent value.

gdb/testsuite/ChangeLog:

        * gdb.base/ldbl_e308.c, gdb.base/ldbl_e308.exp: New files.
2012-10-24 18:11:21 +00:00
..
boards * boards/dwarf4-gdb-index.exp: New file. 2012-09-20 15:21:09 +00:00
config
gdb.ada [Ada] Pointers to unconstrained arrays inside variant record. 2012-10-24 18:06:10 +00:00
gdb.arch gdb/ 2012-10-15 19:15:57 +00:00
gdb.asm
gdb.base off-by-one max exponent computation in convert_doublest_to_floatformat 2012-10-24 18:11:21 +00:00
gdb.cell
gdb.cp * lib/cp-support.exp (cp_test_ptype_class): Add support 2012-10-15 22:32:50 +00:00
gdb.disasm
gdb.dwarf2 Remove trailing '#' in gdb.dwarf2/dw2-icc-opaque.S 2012-10-15 17:26:14 +00:00
gdb.fortran 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com> 2012-09-26 19:38:32 +00:00
gdb.gdb 2012-09-08 Khoo Yit Phang <khooyp@cs.umd.edu> 2012-09-08 05:29:21 +00:00
gdb.go
gdb.hp * gdb.hp/gdb.aCC/exception.exp: Remove. 2012-08-21 19:36:47 +00:00
gdb.java gdb/testsuite/ 2012-10-15 19:11:56 +00:00
gdb.linespec PR breakpoints/14643. 2012-10-11 16:12:05 +00:00
gdb.mi gdb: 2012-10-17 00:53:24 +00:00
gdb.modula2
gdb.multi
gdb.objc * Makefile.in (SFILES): Remove objc-exp.y. 2012-07-26 20:11:10 +00:00
gdb.opencl
gdb.opt
gdb.pascal
gdb.python PR python/14635: 2012-10-15 15:23:47 +00:00
gdb.reverse gdb/testsuite/ 2012-10-16 13:14:36 +00:00
gdb.server * gdb.base/annota1.exp: Accept no frames-invalid notification 2012-08-02 15:59:59 +00:00
gdb.stabs
gdb.threads * gdb.base/annota1.exp: Accept no frames-invalid notification 2012-08-02 15:59:59 +00:00
gdb.trace gdb/testsuite/ 2012-09-29 00:03:56 +00:00
gdb.xml http://sourceware.org/ml/gdb-patches/2012-09/msg00015.html 2012-09-14 21:23:45 +00:00
lib * lib/cp-support.exp (cp_test_ptype_class): Add support 2012-10-15 22:32:50 +00:00
ChangeLog off-by-one max exponent computation in convert_doublest_to_floatformat 2012-10-24 18:11:21 +00:00
Makefile.in
TODO
aclocal.m4
configure
configure.ac
dg-extract-results.sh