This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
functions returning double or float inspection
- From: Gene Smith <gds at chartertn dot net>
- To: insight at sources dot redhat dot com
- Date: Mon, 11 May 2009 16:07:31 -0400
- Subject: functions returning double or float inspection
I have been experimenting with function that return doubles in gcc such
as c = pow(x,y). They work OK and I can inspect the float/double c
return value (as a pop-up or as a watch) and it is ok. But if I inspect
pow(x,y) itself (highlighting the function call with the mouse or
evaluating in a watch window or print /f pow(x,y) in the console) I see
usually an integer value with no decimal or an incorrect real value. Is
this a bug or am I doing something wrong when letting insight/gdb
calculate a float/double function value?
-gene