Path: utzoo!utgpu!watmath!clyde!att!occrsh!uokmax!rob
From: rob@uokmax.UUCP (Robert K Shull)
Newsgroups: comp.sys.mac.programmer
Subject: LSC Debugger
Keywords: debugger data window floating point
Message-ID: <2088@uokmax.UUCP>
Date: 1 Dec 88 15:20:25 GMT
Organization: University of Oklahoma, Norman, OK
Lines: 30

I'm have some problems using the "data" window in the Lightspeed C debugger.
I'm trying to change the value of a floating point number.

Suppose I have the following program:
#include 
main()
{
	float	a;
	int	b;
	
	a = 1;
	for(b=0;b<100;b++)
		a+=1;
	printf("a=%d\n",a);
}

With the program "stepped" to the line "a+=1;", I switch to the data window
and try to change the value of a, which I've been monitoring. I can set
the value of a to 0, but not to anything else.
If I go back to LSC, change the type of a to "int" and re-run the debugger,
I can change the value of a with no problem.

System is: Mac II with 2-meg, System 6.0.2, LSC 3.0p2, MacsBug 5.5

Does anyone have a suggestion?
	Thanks,
	Robert
-- 
Robert K. Shull
att!occrsh!uokmax!rob or sun!texsun!uokmax!rob