This is the mail archive of the gdb@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: : Re: [RFC] multiple breakpoints from FILE:LINE


On Mon, Jan 16, 2006 at 02:34:15PM +0100, Cyrille Comar wrote:
> Daniel Jacobowitz wrote:
> >I've yet to see a compelling reason to break on one constructor and not
> >the other.  Most users don't even know the difference between when each
> >is called.
> 
> I am not familiar at all with C++ debugging, so the situation is not 
> clear to me: To break on constructors, do you use the FILE:LINE of the 
> class? Wouldn't that break on destructors as well? (or any other type 
> specific implicit operation, if such thing exists in C++)

No, you either use Class::Class or Class::~Class, or the FILE:LINE of a
user-provided definition.  They all have names whether or not they have
explicit definitions.

-- 
Daniel Jacobowitz
CodeSourcery


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