public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: gordon.prieur@sun.com
To: gdb-gnats@sources.redhat.com
Subject: c++/2417: Breakpoints ignored in constructors outside class {} definition
Date: Wed, 27 Feb 2008 22:58:00 -0000	[thread overview]
Message-ID: <20080227225553.3449.qmail@sourceware.org> (raw)


>Number:         2417
>Category:       c++
>Synopsis:       Breakpoints ignored in constructors outside class {} definition
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 27 22:58:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Gordon Prieur
>Release:        gdb 6.5.50 (Cygwin), gdb 6.6 (Ubuntu 7.10, Fedora Core 8, Solaris 10)
>Organization:
>Environment:
Windows/Cygin, Fedora Core 8, Ubuntu 7.10, and Solaris 10
>Description:
If I create a C++ class and define the constructor outside
the class definition, breakpoints in the constructor are
ignored. Adding complexity to the constructor (I/O or function/method calls) resolves the problem.

Doing object file dumps of the debugging/line information
shows the object file has line information for the line
in question. The break commands also succeed. Its just at
run time the breakpoints are ignored.
>How-To-Repeat:
Set breakpoints at lines 7, 14, and 20. Run the program.
Gdb stops at the breakpoints at lines 7 and 20, but does
not stop at the one at line 14.
>Fix:

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

Y2xhc3MgQXsNCiAgICBpbnQgbnVtMTsNCnB1YmxpYzoNCiAgICBBKCl7DQogICAgICAgIG51bTEg
PSAxOw0KICAgIH0NCiAgICANCiAgICBBKGludCBpKTsNCn07DQoNCkE6OkEoaW50IGkpIHsNCiAg
ICBudW0xID0gaTsNCn0NCg0KaW50IG1haW4oaW50IGFyZ2MsIGNoYXIqKiBhcmd2KSB7DQogICAg
QSBhOw0KICAgIEEgYig1KTsNCiAgICByZXR1cm4gMDsNCn0NCg==


             reply	other threads:[~2008-02-27 22:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-27 22:58 gordon.prieur [this message]
2008-02-27 23:18 Daniel Jacobowitz
2008-02-28  0:38 Gordon Prieur
2008-02-28  2:43 drow
2008-02-28  2:48 Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080227225553.3449.qmail@sourceware.org \
    --to=gordon.prieur@sun.com \
    --cc=gdb-gnats@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).