Bug#519522: gdb: setting breakpoint in constructor fails

2009-10-11 Thread Daniel Jacobowitz
On Fri, Mar 13, 2009 at 11:16:50AM +0100, Thomas Richter wrote: > Compile with g++ -O0 -ggdb3 test.cpp and start debugging with gdb a.out. Now > enter the > command > > break A::A > > and start the program with "run". Even though the breakpoint is reported to > be set, the > program does not st

Bug#519522: gdb: setting breakpoint in constructor fails

2009-03-13 Thread Thomas Richter
Package: gdb Version: 6.8-3 Severity: normal gdb is unable to set break-points in constructors of C++ classes. To reproduce, consider the following C++ code: #include class A { int x; public: A(int y); ~A(); int getX() const; }; A::A(int y) : x(y) { std::printf("creating\n"); }