This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/16441] New: prints "inf" for large long double constant 2^16383 on S/390


https://sourceware.org/bugzilla/show_bug.cgi?id=16441

            Bug ID: 16441
           Summary: prints "inf" for large long double constant 2^16383 on
                    S/390
           Product: gdb
           Version: 7.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: krebbel1 at de dot ibm.com

#define TWO16383 5.94865747678615882542879663314003565E+4931L
#include <stdio.h>

int main()
{
  printf ("%Le %La\n", TWO16383, TWO16383);
}

gcc ldbl-max-gdb.c -o t -g3

(gdb) b main
Breakpoint 1 at 0x8000058e: file ldbl-max-gdb.c, line 6.
(gdb) r
Starting program: /home/andreas/glibc/tests/t 

Breakpoint 1, main () at ldbl-max-gdb.c:6
6         printf ("%Le %La\n", TWO16383, TWO16383);
(gdb) x/4xw $r13
0x800006b0:     0x7ffe0000      0x00000000      0x00000000      0x00000000
(gdb) p *(long double*)$r13
$1 = inf

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]