c++/2055: breakpoints in template functions

gdb@copton.net gdb@copton.net
Tue Dec 20 12:08:00 GMT 2005

>Number:         2055
>Category:       c++
>Synopsis:       breakpoints in template functions
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 20 12:08:01 GMT 2005
>Originator:     Alexander Bernauer / Derrick Bass
>Release:        6.3-debian
Debian GNU/Linux sarge
g++ (GCC) 3.3.5 (Debian 1:3.3.5-13)
GNU gdb 6.3-debian configured as "i386-linux"
Breakpoints in template functions are not hit reliably. A small examle program is attached.

This issue was already reported for release 5 of the GDB (http://lists.gnu.org/archive/html/bug-gdb/2001-04/msg00038.html) 
g++ -g -o test test.cpp
gdb test
(gdb) break test.cpp:4
(gdb) run
The breakpoint is hit once. Say "continue". Instead of hitting the breakpoint a second time the program exits normally.
Content-Type: text/x-c++src; name="test.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.cpp"


More information about the Gdb-prs mailing list