🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #9782

SDB bug (Well, sort of...)

#9782
From: Richard Champeaux
Date: Tue, 13 Sep 1988 21:35
37 lines
1232 bytes
   I've been having a problem using sdb and m.lib which is the Motorola
Fast Floating Point library.  With the following program:

#include <math.h>

main()
{
   float a;
   
   a=1;
   
   printf("a = %f\n",a);
}

compiled with 
   cc -n ft.c

linked with
   ln -g ft.o -lm -lc
   
   The Program runs correctly and prints "a = 1.000000".  However when I run
it with sdb, after executing the "a=1;" line, typing "p a" prints:

float a = -5.8775173e-39

but when the printf() is executed, it still prints out "a = 1.000000".

   Everything works just fine when you use one of the IEEE double precision
libraries, so sdb just doesn't know how to print a Motorola floating point
number (don't they use different formats?)

   Not a big problem, unless of course it's 1:00 at night and you're working
on something due at 8:00 in the morning :-)

Rich Champeaux
Clemson University
Technical Details
Message-ID: <2964@hubcap.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!super!udel!gatech!hubcap!rchampe

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!super!udel!gatech!hubcap!rchampe
From: rchampe@hubcap.UUCP (Richard Champeaux)
Newsgroups: comp.sys.amiga.tech
Subject: SDB bug (Well, sort of...)
Keywords: SDB bug
Message-ID: <2964@hubcap.UUCP>
Date: 13 Sep 88 21:35:34 GMT
Organization: Clemson University, Clemson, SC
Lines: 37