public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/2417: Breakpoints ignored in constructors outside class {} definition
@ 2008-02-28 2:43 drow
0 siblings, 0 replies; 5+ messages in thread
From: drow @ 2008-02-28 2:43 UTC (permalink / raw)
To: gdb-prs, gordon.prieur, nobody
Synopsis: Breakpoints ignored in constructors outside class {} definition
State-Changed-From-To: open->closed
State-Changed-By: drow
State-Changed-When: Thu Feb 28 02:43:31 2008
State-Changed-Why:
Already fixed in CVS.
http://sourceware.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=2417
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: c++/2417: Breakpoints ignored in constructors outside class {} definition
@ 2008-02-28 2:48 Daniel Jacobowitz
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2008-02-28 2:48 UTC (permalink / raw)
To: nobody; +Cc: gdb-prs
The following reply was made to PR c++/2417; it has been noted by GNATS.
From: Daniel Jacobowitz <drow@false.org>
To: Gordon Prieur <Gordon.Prieur@Sun.COM>
Cc: gdb-gnats@sources.redhat.com
Subject: Re: c++/2417: Breakpoints ignored in constructors outside class {}
definition
Date: Wed, 27 Feb 2008 21:43:03 -0500
On Wed, Feb 27, 2008 at 04:34:34PM -0800, Gordon Prieur wrote:
> Daniel,
>
> The problem is fixed in cvs.
>
> However, the cvs version won't build on Solaris. In remote.c line
> 2859 the line "sprintf("vaAttach;%x", pid)" fails because (at least on
> Solaris) pid_t isn't unsigned and its using an unsigned format specifier
> for a signed long. The exact error message is:
>
> > remote.c: In function `extended_remote_attach_1':
> > remote.c:2859: warning: unsigned int format, pid_t arg (arg 3)
>
> I can file a bug if you want.
Yep. We found this last week and I haven't gotten around to the fix
yet but I'll try to make sure that's included in 6.8.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: c++/2417: Breakpoints ignored in constructors outside class {} definition
@ 2008-02-28 0:38 Gordon Prieur
0 siblings, 0 replies; 5+ messages in thread
From: Gordon Prieur @ 2008-02-28 0:38 UTC (permalink / raw)
To: nobody; +Cc: gdb-prs
The following reply was made to PR c++/2417; it has been noted by GNATS.
From: Gordon Prieur <Gordon.Prieur@Sun.COM>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb-gnats@sources.redhat.com
Subject: Re: c++/2417: Breakpoints ignored in constructors outside class {}
definition
Date: Wed, 27 Feb 2008 16:34:34 -0800
Daniel,
The problem is fixed in cvs.
However, the cvs version won't build on Solaris. In remote.c line
2859 the line "sprintf("vaAttach;%x", pid)" fails because (at least on
Solaris) pid_t isn't unsigned and its using an unsigned format specifier
for a signed long. The exact error message is:
> remote.c: In function `extended_remote_attach_1':
> remote.c:2859: warning: unsigned int format, pid_t arg (arg 3)
I can file a bug if you want.
Thanks,
Gordon
Daniel Jacobowitz wrote:
> On Wed, Feb 27, 2008 at 10:55:53PM -0000, gordon.prieur@sun.com wrote:
>
>> 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.
>>
>
> Try GDB HEAD, where this should be fixed by Vladimir's heroic work.
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: c++/2417: Breakpoints ignored in constructors outside class {} definition
@ 2008-02-27 23:18 Daniel Jacobowitz
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2008-02-27 23:18 UTC (permalink / raw)
To: nobody; +Cc: gdb-prs
The following reply was made to PR c++/2417; it has been noted by GNATS.
From: Daniel Jacobowitz <drow@false.org>
To: gordon.prieur@sun.com
Cc: gdb-gnats@sources.redhat.com
Subject: Re: c++/2417: Breakpoints ignored in constructors outside class {}
definition
Date: Wed, 27 Feb 2008 18:14:47 -0500
On Wed, Feb 27, 2008 at 10:55:53PM -0000, gordon.prieur@sun.com wrote:
> 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.
Try GDB HEAD, where this should be fixed by Vladimir's heroic work.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
* c++/2417: Breakpoints ignored in constructors outside class {} definition
@ 2008-02-27 22:58 gordon.prieur
0 siblings, 0 replies; 5+ messages in thread
From: gordon.prieur @ 2008-02-27 22:58 UTC (permalink / raw)
To: gdb-gnats
>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==
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-02-28 2:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-28 2:43 c++/2417: Breakpoints ignored in constructors outside class {} definition drow
-- strict thread matches above, loose matches on Subject: below --
2008-02-28 2:48 Daniel Jacobowitz
2008-02-28 0:38 Gordon Prieur
2008-02-27 23:18 Daniel Jacobowitz
2008-02-27 22:58 gordon.prieur
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).