This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: can't find class named `foo', as given by C++ RTTI
- To: Daniel Berlin <dan at cgsoftware dot com>
- Subject: Re: can't find class named `foo', as given by C++ RTTI
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Fri, 29 Jun 2001 11:34:48 -0700 (PDT)
- cc: Jim Blandy <jimb at cygnus dot com>, gdb at sources dot redhat dot com
> > In this case, GDB wasn't able to find the name std::numpunct.
Right.
> > Probably GDB should have been able to find std::numpunct.
Definitely, GDB should be able to find std::numpunct.
> > But does
> > the rest of the process look reasonable? That is, was the run-time
> > type of *__fp indeed `std::numpunct'? The output from `ptype'
> > suggests that its compile-time type is `class facet'. Perhaps
> > something went wrong well before we ever tried to look up the type
> > name.
>
> Nope. The name of the type in the symbol table is numpunct<char>,
> because of scoping problems.
Right. The ptype output is the base class, not what I really want to see.
I'd like to be able to look at the contents of the object, for instance.
I think this is a reasonable request.
You might want to look at this:
http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-doxygen-3.0/class_std__numpunct.html
There's been some discussion on this thread: I'll give you a bit of time
to catch up.
-benjamin