From owner-freebsd-bugs Fri Nov 14 18:40:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA23733 for bugs-outgoing; Fri, 14 Nov 1997 18:40:05 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA23727; Fri, 14 Nov 1997 18:40:02 -0800 (PST) (envelope-from gnats) Resent-Date: Fri, 14 Nov 1997 18:40:02 -0800 (PST) Resent-Message-Id: <199711150240.SAA23727@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, mika@cs.caltech.edu Received: from vlsi.cs.caltech.edu (vlsi.cs.caltech.edu [131.215.131.129]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id SAA23404 for ; Fri, 14 Nov 1997 18:34:55 -0800 (PST) (envelope-from mika@dogmatix.cs.caltech.edu) Received: from dogmatix.cs.caltech.edu by vlsi.cs.caltech.edu (4.1/1.34.1) id AA18873; Fri, 14 Nov 97 18:34:53 PST Received: (from mika@localhost) by dogmatix.cs.caltech.edu (8.8.8/8.8.7) id SAA01073; Fri, 14 Nov 1997 18:34:48 -0800 (PST) Message-Id: <199711150234.SAA01073@dogmatix.cs.caltech.edu> Date: Fri, 14 Nov 1997 18:34:48 -0800 (PST) From: Mika Nystroem Reply-To: mika@cs.caltech.edu To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/5046: gdb doesn't understand exponential notation Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5046 >Category: bin >Synopsis: gdb doesn't understand exponential notation >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Nov 14 18:40:01 PST 1997 >Last-Modified: >Originator: Mika Nystroem >Organization: Department of Computer Science California Institute of Technology >Release: FreeBSD 3.0-CURRENT i386 >Environment: >Description: gdb simply doesn't understand exponential notation GDB 4.16 (i386-unknown-freebsd), Copyright 1996 Free Software Foundation, Inc. (gdb) print 1e2+1 $1 = 1 (gdb) print 1e2 $2 = 0 (gdb) the answers should be 101 and 100, respectively. I am told this problem was introduced somewhere between 2.1.5-RELEASE and 2.2-STABLE and remains to this day. This makes it extremely painful to debug any code that involves small or large floating-point numbers. >How-To-Repeat: See above. >Fix: I have no idea. I spent hours trying to figure out how gdb works..... The same thing happens with a fresh 4.16 from the FSF, by the way. >Audit-Trail: >Unformatted: