This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/1520: [regression] namespace.exp, gcc HEAD, dwarf-2


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]