On Thursday 08 December 2005 4:04 am, anuradha.vembu@wipro.com wrote:
I am trying to debug my application using gdb. When I try to put a breakpoint in a constructor, it says no such function. When I apply breakpoint in the particular line number, the breakpoint gets set. When I run the application, it should stop in that breakpoint before any execution; but it does not do.
So my doubt is, does gdb display when breakpoints are put in the constructor? Please suggest me a way by which I would ensure that all the constructors (objects) are initialized before I run the application.
This is actually related to my earlier question that was appropriately answered. GDB will certainly insert a breakpoint in a constructor unless that constructor is inlined. When any code is inlined, the code is inserted into the place where the class is instantiated.