Bug 41834

Summary: debugger can't locate the code lines correctly
Product: [Applications] kdevelop Reporter: wuchang
Component: kdevelop 2.x (obsolete)Assignee: KDevelop-Devel List <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description wuchang 2002-04-28 17:13:43 UTC
(*** This bug was imported into bugs.kde.org ***)

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)
Comment 1 John Firebaugh 2002-09-15 21:31:39 UTC
Should work with Gideon