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
- From: "Eli Zaretskii" <eliz at gnu dot org>
- To: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- Cc: drow at false dot org, gdb at sources dot redhat dot com
- Date: Mon, 19 Jul 2004 06:52:50 +0200
- Subject: Re: How to setup a breakpoint on constructor
- References: <20040718190316.2D9C94B104@berman.michael-chastain.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Sun, 18 Jul 2004 15:03:16 -0400 (EDT)
> From: mec.gnu@mindspring.com (Michael Elizabeth Chastain)
>
> What does 'print &A::A()' print?
>
> What does 'disassemble A::A()' print?
Okay, but these have nothing to do with setting a breakpoint on
A::A(). Moreover, I think these two usages are much more rare than
"break A::A()" (I wonder how many users even know about the former,
for example).
So I don't think these issues should prevent us from using the patch.
> There's an assumption in some of gdb's commands that one source code
> address maps to one object code address. The UI has to acknowledge
> that some source code addresses map to multiple object code addresses.
We could fix these problems later, as we discover them.