Bug#41834: debugger can't locate the code lines correctly
wuchang at iit.edu
wuchang at iit.edu
Sun Apr 28 19:19:02 UTC 2002
Package: kdevelop
Version: KDE 2.2.2
Severity: normal
Installed from: RedHat RPMs
Compiler: gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
OS: Linux (i686) release 2.4.9-31
OS/Compiler notes:
I find that the debugger can't locate the lines of the source code correalcty. It points to the blank lines or sometimes goes out of the function to the comments lines. It sometimes points to the line that has already been executed. The watch function also doesn't work correctly. For some float values, it shows 'nan' but when i exit the debug mode and print the value out by printf, the value is correct. In the debug mode, this error will enfluence the execution of the program also. The testing code is below:
//debug can't show the value of sigmaA correctly.
int main(int argc, char *argv[])
{
double temp = 0;
double sigmaA;
temp = 170.007845549;
sigmaA = sqrt(temp);
printf("%f", sigmaA);
return 1;
}
(Submitted via bugs.kde.org)
(Called from KBugReport dialog. Fields Application, KDE Version manually changed)
More information about the KDevelop-devel
mailing list