Re: How to setup a breakpoint on constructor

Michael Elizabeth Chastain
2004-07-18T19:03:16Z

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