This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: debug/7580: incorrect/unfortunate DWARF-2 info for static const int class members
- From: bangerth at dealii dot org
- To: carlton at math dot stanford dot edu, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 22 Nov 2002 01:58:48 -0000
- Subject: Re: debug/7580: incorrect/unfortunate DWARF-2 info for static const int class members
- Reply-to: bangerth at dealii dot org, carlton at math dot stanford dot edu, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: incorrect/unfortunate DWARF-2 info for static const int class members
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Thu Nov 21 17:58:47 2002
State-Changed-Why:
I have no idea about the theoretical indications made in the
report about what would be correct or incorrect, but I can
confirm the results: with gcc3.2 I cannot see the static
variable in gdb.
However, when compiled with 3.2.1, I get
(gdb) b C::foo
the class C does not have any method named foo
Hint: try 'C::foo<TAB> or 'C::foo<ESC-?>
(Note leading single quote.)
(gdb) ptype C
type = class C {
private:
static const int foo;
public:
C & operator=(C const&);
C(class C &);
C(void);
}
which I attribute to the fact that I still have gdb 5.1.1.
To make things worse, with gcc3.3CVS I am back to the state
of 3.2, i.e. I cannot see the variable...
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7580