Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Additional weired behaviour of gdb
@ 1997-06-20 22:34 David Mosberger-Tang
  1997-06-21  0:01 ` Cheap monitor for UDB D. Steven Daniel
  0 siblings, 1 reply; 2+ messages in thread
From: David Mosberger-Tang @ 1997-06-20 22:34 UTC (permalink / raw)


>  I recently had found another strange behaviour of gdb, regarding
 >double variables/functions. When you next-step over a function which
 >returns a double value you receive some strange results. The returned
 >value is totally arbitrary. if you set a break point after the
 >function call the result is correct. This is also the case when you
 >use functions (sin, cos) of math-lib.
 >
 >  Have someone the same behaviour or is this specfic to my system? I
 >hope not.

 I have the same problem (I'm using Redhat 4.1). It's been driving me nuts, 
 since just about all my code is floating point math using doubles. *sigh*

Not a fix, but a workaround is to directly look at the floating point
registers (assuming the variable in question really is in a register).
Return values are passed in f0.  E.g., "print $f0" would show print
the return value of a function.  The "step/i" and "dis" instructions
are helpful in finding out what register to look at.

If I recall correctly, I have had problems with floating point values
in gdb on Linux/x86 as well.  Maybe it's not an Alpha specific
problem.  I wish I could offer to look into this (and the other) gdb
problems, but it doesn't look like I'll get to it soon.

	--david

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Cheap monitor for UDB
  1997-06-20 22:34 Additional weired behaviour of gdb David Mosberger-Tang
@ 1997-06-21  0:01 ` D. Steven Daniel
  0 siblings, 0 replies; 2+ messages in thread
From: D. Steven Daniel @ 1997-06-21  0:01 UTC (permalink / raw)


Sorry to list here but I have a 19" grayscale single frequency monitor for
sale. It is 1280 X 1024 and is already tuned for the tga card on the UDB
using the last configuration in the XF86Config file. The screen is sharp
Price $125.00 plus shipping! If you need a video cable 15pin to bnc I can
provide one for an additional $15.00

Please reply to danields@goldsword.com 

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-06-21  0:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-06-20 22:34 Additional weired behaviour of gdb David Mosberger-Tang
1997-06-21  0:01 ` Cheap monitor for UDB D. Steven Daniel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox