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: Jim Blandy <jimb at zwingli dot cygnus dot com>
- Date: 30 Jun 2001 12:15:37 -0500
- Cc: Benjamin Kosnik <bkoz at redhat dot com>, gdb at sources dot redhat dot com
- References: <npithfrkz7.fsf@zwingli.cygnus.com><13482076.993868984@[192.168.0.106]>
Daniel Berlin <dan@cgsoftware.com> writes:
> But first, realize that to implement in GDB, you must do one of two things.
> 1. Change GDB to only explicitly keep track of the current scope (IE like
> the compilers do), and magically have the symbols for that scope. This
> would require so much redesign it's not even funny.
> 2. Convert what the designs say from stacks to blockvectors (IE most are
> based on stacks where you only keep the current visible scopes around. We
> need all the scopes, so you just have to think of how to do the conversion
> between the two in your head. It's usually not that difficult to do at all.)
>
> I'd suggest, for obvious reasons, 2.
Yeah, I'd say 1. doesn't apply to us.
> Section 3 of Advanced Compiler Design and Implementation - Steven Muchnick
>
> It's titled "Symbol table structure".
Oh, I've got that, actually.