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
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Bernauer / Derrick Bass
>Release:        6.3-debian
>Organization:
>Environment:
Debian GNU/Linux sarge
g++ (GCC) 3.3.5 (Debian 1:3.3.5-13)
GNU gdb 6.3-debian configured as "i386-linux"
>Description:
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) 
>How-To-Repeat:
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.
>Fix:
none
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="test.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.cpp"

I2luY2x1ZGUgPGlvc3RyZWFtPgp0ZW1wbGF0ZTxjbGFzcyBUPgp2b2lkIGYoVCB4KSB7CiAgc3Rk
Ojpjb3V0IDw8IHggPDwgc3RkOjplbmRsOwp9CgppbnQgbWFpbigpIHsKICAgIGYoNCk7CiAgICBm
KDUuNik7Cn0K



More information about the Gdb-prs mailing list