This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: c++/1520: [regression] namespace.exp, gcc HEAD, dwarf-2
- From: David Carlton <carlton at kealia dot com>
- To: mec dot gnu at mindspring dot com
- Cc: gdb at sources dot redhat dot com, gdb-gnats at sources dot redhat dot com
- Date: Mon, 19 Jan 2004 10:32:59 -0800
- Subject: Re: c++/1520: [regression] namespace.exp, gcc HEAD, dwarf-2
- References: <20040119051746.24635.qmail@sources.redhat.com>
On 19 Jan 2004 05:17:46 -0000, mec.gnu@mindspring.com said:
> Build gdb.cp/namespace with gcc HEAD -gdwarf-2. I used both gcc
> HEAD 2004-01-08 and gcc HEAD 2004-01-15, so it wasn't a recent
> change in gdb.
"in gcc", presumably.
> Then go into gdb. break on C::D::marker2 and run there. Then do
> these commands:
> (gdb) print c
> (gdb) print cc
> (gdb) print 'C::cc'
> (gdb) print C::cc
> (gdb) print cd
> (gdb) print C::D::cd
> (gdb) print 'E::cde'
> (gdb) print E::cde
> (gdb) print shadow
> (gdb) print E::ce
> (gdb) ptype C
> (gdb) ptype E
> gdb 6.0 can resolve some of these names, but gdb HEAD fails on all
> of them. This is with the same executable built with gcc HEAD.
That's really not good. It must mean that gcc HEAD is generating
DW_TAG_namespace in a different way than the patched gcc that I had
been using. I don't know if it's a bug in gcc or a bug in my code;
I'm building gcc HEAD as we speak...
David Carlton
carlton@kealia.com