Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Nov 1997 18:34:48 -0800 (PST)
From:      Mika Nystroem <mika@cs.caltech.edu>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/5046: gdb doesn't understand exponential notation
Message-ID:  <199711150234.SAA01073@dogmatix.cs.caltech.edu>
Resent-Message-ID: <199711150240.SAA23727@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711150234.SAA01073>