This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Debugging of gcc 3.1 programs with -mfpmath=sse
> > Date: Tue, 12 Feb 2002 15:38:41 +0100
> > From: Jan Hubicka <jh@suse.cz>
> >
> > while hunting down the bugs in gcc3.1 SSE scalar code generation I've noticed
> > that new gdb5.1 supports SSE (great :), but insist on printing the variables in
> > hexadecimal form, instead of as floats, that is somewhat anoying. Since I am
> > having minimal insight to gdb internals, and somehow I want to keep that for
> > some time, I would like to ask, what needs to be done to get floats displayed
> > right
>
> Doesn't "p/f" work?
I didn't tested, but shouldn't gdb automatically print the variable in proper
format - ie if it is "float", print it in floating point, not hexa?
Honza