This is the mail archive of the gdb@sources.redhat.com 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: 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


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