This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/16441] New: prints "inf" for large long double constant 2^16383 on S/390
- From: "krebbel1 at de dot ibm.com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 13 Jan 2014 12:38:38 +0000
- Subject: [Bug gdb/16441] New: prints "inf" for large long double constant 2^16383 on S/390
- Auto-submitted: auto-generated
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.