This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/1955: gdb cannot set breakpoints in constructors, fedora3, g++


>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
>Closed-Date:
>Last-Modified:
>Originator:     Spiros Boucouris
>Release:        unknown-1.0
>Organization:
>Environment:
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)
>Description:
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
?HERE
?HERE
> 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 . . .
>How-To-Repeat:
g++ -g -o hello hello.cxx
gdb hello
gdb> break ttt::ttt
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="hello.cxx"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="hello.cxx"

CiNpbmNsdWRlICA8c3RkaW8uaD4KCgpjbGFzcyAgdHR0ICB7CiAgICBwcml2YXRlOgogICAgICBp
bnQgIGFfOwogICAgcHVibGljOgogICAgICB0dHQoaW50IGEpICAgIHsgYV8gPSBhOyB9OwogICAg
ICB+dHR0KCk7CiAgICAgIHZvaWQgIHByaW50KCkgIGNvbnN0ICAgIHsgcHJpbnRmKCIlZFxuIiwg
YV8pOyB9Owp9OwoKCgptYWluKCkgIHsKCiAgdHR0KiAgcHRyID0gbmV3IHR0dCg1KTsKCiAgcHRy
LT5wcmludCgpOwp9CgoKCg==


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]