[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#414178: marked as done (No debugging symbols of local variables in constructor and destructors.)



Your message dated Sat, 6 Apr 2013 00:21:36 +0100
with message-id <CAPQ4b8niBZcQRyMHWCingpVyPnrKD=5m34iQQ4F2gAr42MxDwg@mail.gmail.com>
and subject line Fixed 414178 in GCC 4.4.0
has caused the Debian Bug report #414178,
regarding No debugging symbols of local variables in constructor and destructors.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
414178: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=414178
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: g++
Version: 4:4.1.1-15

I tried to debug this simple program, and i cannot print the local variables in constructor and destructor methods. I write "print i" in the gdb command line and I get "No symbol found". I tested this code on Debian etch but, was tested by other guy who uses Fedora, and he get the same result. We tested it with both gdb 6.5 and gdb 6.6, so it seems g++ bug. I suggest to forward this bug to gcc developers as soon as possible.

---------------------------------file show_bug.cpp---------------------------------------------------------
/***
* This test program demonstrates a problem encountered with g+ v4.1.1 on
* Fedora Core 6 x86_64 using both gdb 6.5 and gdb 6.6.  The value of a
* local variable in a constructor or destructor is not printable, however
* the value of a local variable in a simple member function is printable.
* For testing the code was compiled as:
*     g++  -O0 -ggdb3 show_bug.cpp
*/
#include <iostream>

class Show_Bug
{
public:
 Show_Bug();

 void
   show_ints() ;

 ~Show_Bug();

} ; /* class Show_Bug */


Show_Bug::Show_Bug()
{
 // Trying to display the value of i in this scope results in the message:
 // No symbol "i" in current context.
 int i = 0 ;

 for (i=0; i<3; i++)
 {
   std::cout << i << std::endl;
 }

} /* Show_Bug::Show_Bug() */


void
Show_Bug::show_ints()
{
 // Trying to display the value of i in this scope works fine
 int i = 0 ;

 for (i=0; i<3; i++)
 {
   std::cout << i << std::endl;
 }

} /* Show_Bug::show_ints() */

Show_Bug::~Show_Bug()
{

 // Trying to display the value of i in this scope results in the message:
 // No symbol "i" in current context.
 int i = 0 ;

 for (i=4; i<6; i++)
 {
   std::cout << i << std::endl;
 }

}


int
main()
{
 Show_Bug tst ;

 tst.show_ints() ;

 return 0 ;

} /* main */
---------------End of file--------------------------------------------------------------------

_________________________________________________________________
MSN Amor: busca tu ½ naranja http://latam.msn.com/amor/



--- End Message ---
--- Begin Message ---
fixed 414178 1.90
stop

This bug was fixed in 4.4.0 according to the upstream bugtracker, which
was released long ago.

gcc-defaults 1.90 (Tue, 08 Dec 2009 00:39:44 +0100) depends on that version.

Cheers.

--- End Message ---

Reply to: