This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
Re: c++/2417: Breakpoints ignored in constructors outside class {}definition
- From: Gordon Prieur <Gordon dot Prieur at Sun dot COM>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 28 Feb 2008 00:38:01 -0000
- Subject: Re: c++/2417: Breakpoints ignored in constructors outside class {}definition
- Reply-to: Gordon Prieur <Gordon dot Prieur at Sun dot COM>
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.
>
>