c++/1929: Breapoints in class constructors do not work

jrliggett@cox.net jrliggett@cox.net
Fri Apr 29 03:18:00 GMT 2005

>Number:         1929
>Category:       c++
>Synopsis:       Breapoints in class constructors do not work
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 29 03:18:01 UTC 2005
>Originator:     jrliggett@cox.net
>Release:        6.3
Gentoo GNU/Linux 2005.0
If a breakpoint is set in a c++ class constructor, the program will not break at that point. 
1. Open a c++ program that uses classes with constructors for debugging.
2. Set a breakpoint anywhere in that constructor.
3. Make sure that this class is instanciated so that it uses the constructor in which the breakpoint appears.
4. Run the program where this class will be used. The constructor breakpoint will be ignored.


More information about the Gdb-prs mailing list