← Back to team overview

touch-packages team mailing list archive

[Bug 1197027] Re: gdb shows 'inf' when printing long doubles on x86_64

 

please recheck with 14.10 and gdb-7.8

** Changed in: gdb (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to gdb in Ubuntu.
https://bugs.launchpad.net/bugs/1197027

Title:
  gdb shows 'inf' when printing long doubles on x86_64

Status in “gdb” package in Ubuntu:
  Incomplete

Bug description:
  A test file:
  ---

  #include <stdio.h>
  int main()
  {
    long double a = 0x1.29aeffefc8ec645p+12557L;
    printf("%Lf\n", a);
  }


  Whilst in gdb (on 32bit):
  ---
  (gdb) p 0x1.29aeffefc8ec645p+12557L
  $1 = 12558.16282653431
  (gdb) p a
  $2 = 1.2565231254743496882989195724989633e+3780
  ---

  Do the same but on gdb 64bit:
  ---
  (gdb) p 0x1.29aeffefc8ec645p+12557L
  $1 = 12558.16282653431
  (gdb) p a
  $2 = inf
  ---

  ProblemType: Bug
  DistroRelease: Ubuntu 13.04
  Package: gdb 7.6~20130417-0ubuntu1
  ProcVersionSignature: Ubuntu 3.8.0-23.34-generic 3.8.11
  Uname: Linux 3.8.0-23-generic x86_64
  ApportVersion: 2.9.2-0ubuntu8.1
  Architecture: amd64
  Date: Tue Jul  2 17:07:07 2013
  InstallationDate: Installed on 2013-06-05 (27 days ago)
  InstallationMedia: Ubuntu-Server 13.04 "Raring Ringtail" - Release amd64 (20130423.1)
  MarkForUpload: True
  ProcEnviron:
   LANGUAGE=en_GB:en
   TERM=xterm-256color
   PATH=(custom, no user)
   LANG=en_GB.UTF-8
   SHELL=/bin/bash
  SourcePackage: gdb
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1197027/+subscriptions