gdb/1955: gdb cannot set breakpoints in constructors, fedora3, g++
Wed Jun 1 05:58:00 GMT 2005

>Number:         1955
>Category:       gdb
>Synopsis:       gdb cannot set breakpoints in constructors, fedora3, g++
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 01 05:58:01 UTC 2005
>Originator:     Spiros Boucouris
>Release:        unknown-1.0
Linux 2.6.11-1.27_FC3 #1 Tue May 17 20:27:37 EDT 2005 i686 i686 i386 GNU/Linux
gcc version 3.4.3 20050227 (Red Hat 3.4.3-22.fc3)
GNU gdb Red Hat Linux (6.1post-1.20040607.43rh)
Any attempt to set a breakpoint in a constructor results in a breakpoint at pc=0
break ttt::ttt for the attached file results in:
[0] cancel
[1] all
> 1
Note: breakpoint -1 (disabled) also set at pc 0x0.
Breakpoint 1 at 0x0
Note: breakpoints -1 (disabled) and 1 also set at pc 0x0.
Breakpoint 2 at 0x0
warning: Multiple breakpoints were set.
etc . . .
g++ -g -o hello hello.cxx
gdb hello
gdb> break ttt::ttt

Content-Type: text/x-c++src; name="hello.cxx"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="hello.cxx"


More information about the Gdb-prs mailing list