This is the mail archive of the gdb-patches@sourceware.org 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: [patch] Fix initial language with -readnow, regressed by: RFC: add DWARF index support


> if you use -readnow the common autodetection
> 	The current source language is "auto; currently c++".
> fails
> 	The current source language is "auto; currently c".
> causing various C++ handling problems.

Umpf.

> +  /* OBJF_READNOW does not provide any index to look up above.  */
> +  if (readnow_seen)
> +    {
> +      sym = lookup_symbol (name, NULL, VAR_DOMAIN, NULL);
> +      if (sym)
> +	return sym->symtab->filename;
> +    }

I keep dreaming of a world where there is one interface for lookups
and we don't have to worry whether there is an index, or psymtabs,
or whatever...

-- 
Joel


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