Public bug reported: Binary package hint: g++
Latest g++ in Hardy (4:4.2.3-1ubuntu6) still exhibits this bug from upstream: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27574 When compiled with "-g -O0", C++ constructors do not have valid information about local variables. If debugging with gdb, "info locals" shows "No locals". The values of local variables cannot be printed. (a trivial example: class A { int i_; public: A(int i0) { int j = 2*i0; i_ = j; } }; main() { A a(2); } If you break in 'A::A(int)', you cannot see 'j'.) Can you please get the bug fix from upstream and apply in Hardy? ** Affects: gcc-defaults (Ubuntu) Importance: Undecided Status: New -- Missing debug info at -O0 for a local variable in a C++ constructor https://bugs.launchpad.net/bugs/336391 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs