print (call) a double function

Gene Smith <[email protected]> Mon, 11 May 2009 15:44:37 -0400
Newsgroups gmane.comp.gdb.general
Message-ID <[email protected]>
In gdb when I "print /f pow(test, 2.2)" which should return a double I 
don't see the the correct answer. The actual code does return the right 
answer. Sometimes I see an integer result, other times an incorrect 
float. There does not seem to be a way for gdb to format a result as a 
"double", e.g., /d  (which is decimal I think).

I see the same thing in insight when I select "pow(test, 2.2)" with the 
mouse and allow it to pop-up a value.

Is this a bug or am I just confused?

-gene