This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/1955: gdb cannot set breakpoints in constructors, fedora3, g++
- From: spiros at genericad dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 1 Jun 2005 05:50:29 -0000
- Subject: gdb/1955: gdb cannot set breakpoints in constructors, fedora3, g++
- Reply-to: spiros at genericad dot com
>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==