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


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++)

I'm assuming the case where a programmer wrote an explicit
constructor.  In that case, you can break on it either by name
("Class::Class") or by line number (pointing at the constructor
function body).

	 paul



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