This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [C++] static data members, gdb problems with
- To: Daniel Berlin <dberlin at redhat dot com>
- Subject: Re: [C++] static data members, gdb problems with
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 31 Aug 2000 17:11:42 +1100
- CC: Benjamin Kosnik <bkoz at redhat dot com>, gcc at gcc dot gnu dot org, bug-gdb at gnu dot org
- References: <Pine.LNX.4.10.10008302240000.31327-100000@fidel.cygnus.com>
Daniel Berlin wrote:
>
> Not our fault, the debug info is wrong, or it really is optimized out.
> It doesn't give us either a bit offset, or the data member location inside
> the struct, or a place where we can find them.
> So GDB, rightfully, assumed it's optimized out (because it has no
> location, and thus, doesn't exist).
>
> It happens with both dwarf2 and stabs.
Just BTW, if the debug info is corrupt then GDB should report an error()
and not an internal_error(). Internal errors are more for when gdb's
internal data structures turn out to be broken (and about to core dump
:-).
enjoy,
Andrew
> > (gdb) p __ios_flags::_S_boolalpha
> > Internal error: could not find static variable _S_boolalpha