This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: FYI: change type searching
- From: Daniel Jacobowitz <dan at codesourcery dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 4 Sep 2010 18:44:49 -0400
- Subject: Re: FYI: change type searching
- References: <m3wrr59m1v.fsf@fleche.redhat.com>
On Wed, Sep 01, 2010 at 03:43:56PM -0600, Tom Tromey wrote:
> I'm checking this in.
Did you test this using GCC 4.5? It appears to regress temargs.exp.
Specifically, this bit:
> @@ -1051,7 +1051,7 @@ lookup_typename (const struct language_defn *language,
> struct symbol *sym;
> struct type *tmp;
>
> - sym = lookup_symbol (name, block, VAR_DOMAIN, 0);
> + sym = lookup_type_symbol (name, block, VAR_DOMAIN, language->la_language);
> if (sym == NULL || SYMBOL_CLASS (sym) != LOC_TYPEDEF)
> {
> tmp = language_lookup_primitive_type_by_name (language, gdbarch, name);
lookup_symbol can find the Base<....> type. lookup_type_symbol does
not find it.
> All of this searching is pointless, though, because types are made
> static, not public.
I don't know what you mean by this. If you mean in our symbol lists,
then that's not true; C++ types go in the global list.
--
Daniel Jacobowitz
CodeSourcery