Bug 58419 - Breakpoints placed to functions rather than source lines
Summary: Breakpoints placed to functions rather than source lines
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: CPP Debugger (show other bugs)
Version: unspecified
Platform: Mandrake RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-13 11:56 UTC by jozef.behran
Modified: 2003-05-14 19:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jozef.behran 2003-05-13 11:56:40 UTC
Version:           2.1.5 (using KDE 3.1.0)
Installed from:    Mandrake Linux Cooker i586 - Cooker
Compiler:          gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
OS:          Linux (i686) release 2.4.21-0.13mdk

I want to be able to define breakpoints "being at the beginning of function such and such". When I place the breakpoint on the function's beginning by hand, it is defined as "being at line such and such". KDevelop tries to track editing so the breakpoint will not go away when lines are added or removed but if I move the function definition somewhere, the breakpoint locations are lost.

Breakpoints "being at the beginning of function such and such" should during debugger initialization determine at which line the function starts and put breakpoints there. When I edit the source in a way that does not allow normal line breakpoints to survive (for example cutting the function definition from one file and pasting it into another file in the project), these breakpoints can survive, because it is always known, where the function they refers to is placed. 

When the function these breakpoints refers to does not exists, they should be made "pending" (as breakpoints placed into source code compiled without debugging support).
Comment 1 John Birch 2003-05-14 01:04:54 UTC
Strange - I'm already working on this :-) 
 
In the meantime when using gideon from cvs try the GDB window and enter "br functionname". It 
won't help in stopping at main but any other function will work. 
 
Don't raise a bug report about the GDB window - I've already have some fixes here - let the dust 
settle for a bit - mail me if you want though :-) 
 
jbb 
 
 
Comment 2 John Birch 2003-05-14 19:00:22 UTC
Fixed in CVS