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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]