In a bigger Objective-C project, GDB confused me by displaying non
exact 128 bit long double floating point values. Fortunately, after
some tests it turned out, that the values are correctly handled by my
program, and it is only an issue of the GDB print command.
Please consider the following test program:
#include <stdio.h>
#include <math.h>
int main (int argc, const char * argv[])
{
float pi_f;
double pi_d;
long double pi_ld;
[Session started at 2006-03-21 15:04:25 -0300.]
3.1415927
3.141592653589793
3.1415926535897932384626433832795
Test has exited with status 0.
However, if I stop this in GDB just until return, the GDB-print
command for pi_f and pi_d give exact results as expected for the
given type, but GDB-print for the pi_ld variable is inexact:
Is this a known issue? I consider this however not major problem,
since the compiled program itself seems to work correctly.
Best regards
Dr. Rolf Jansen
Director R&D
SurTec International GmbH
Zwingenberg Bergstrasse
Germany
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden