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: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- To: drow at false dot org, eliz at gnu dot org
- Cc: gdb at sources dot redhat dot com
- Date: Sun, 18 Jul 2004 15:03:16 -0400 (EDT)
- Subject: Re: How to setup a breakpoint on constructor
eliz> Sorry, I must be missing something: if we put the breakpoint on all
eliz> the instances of the constructor's code, and do that without asking
eliz> the user anything, what UI aspects need to be figured out and
eliz> designed?
What does 'print &A::A()' print?
What does 'disassemble A::A()' print?
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.
Michael C