Your message dated Sat, 29 Sep 2007 19:38:27 -0400
with message-id <[EMAIL PROTECTED]>
and subject line Bug#345986: gdb: `inf' is print as `0'
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: gdb
Version: 6.4-1
Severity: normal


under amd64, gdb print inf as 0, it's correct under i386.

$ cat gdb-bug.cpp
#include <limits>

int main()
{
  double a = std::numeric_limits<double>::infinity();
  return 0;
}
$ g++ -g -o gdb-bug gdb-bug.cpp
$ gdb ./gdb-bug
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...Using host libthread_db library 
"/lib/libthread_db.so.1".

(gdb) b main
Breakpoint 1 at 0x400510: file gdb-bug.cpp, line 5.
(gdb) r
Starting program: /home/wusz/lidaobing/c/gdb-bug

Breakpoint 1, main () at gdb-bug.cpp:5
5         double a = std::numeric_limits<double>::infinity();
(gdb) n
6         return 0;
(gdb) p a
$1 = 0
(gdb)


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing'), (50, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-em64t-p4-smp
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages gdb depends on:
ii  libc6                         2.3.5-8.1  GNU C Library: Shared libraries an
ii  libncurses5                   5.4-9      Shared libraries for terminal hand
ii  libreadline5                  5.1-5      GNU readline and history libraries

gdb recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
Version: 6.6.dfsg.90.20070912-1

On Thu, Jan 05, 2006 at 09:12:22AM +0800, wusz wrote:
> under amd64, gdb print inf as 0, it's correct under i386.

Thanks.  This was fixed on 2007-03-30 upstream.

-- 
Daniel Jacobowitz
CodeSourcery


--- End Message ---

Reply via email to