This is the mail archive of the gdb-prs@sourceware.org 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]

Re: c++/2417: Breakpoints ignored in constructors outside class {}definition


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.
 >
 >   


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