This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: How to setup a breakpoint on constructor
> Date: Fri, 16 Jul 2004 10:21:13 -0400
> From: Daniel Jacobowitz <drow@false.org>
>
> (A) It was an ugly interface change to work around an internal
> limitation, and they needed to retrain users to it.
>
> (B) It exposes the difference between complete and base constructors,
> which is an implementation detail of the C++ ABI that most users don't
> understand.
IMVHO, these 2 objections are not serious enough to prevent us from
using Michael's patch (or yours, for that matter). As things are now,
GDB has a serious drawback wrt debugging C++ constructors; the patch
in question provides a relatively easy workaround.
So I think we should install the patch (and have it prominently
documented in the user's manual, so that users will be able to easily
find such a subtle technique).