This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix initial language with -readnow, regressed by: RFC: add DWARF index support
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 28 Sep 2011 16:07:42 -0700
- Subject: Re: [patch] Fix initial language with -readnow, regressed by: RFC: add DWARF index support
- References: <20110928220344.GA17977@host1.jankratochvil.net>
> 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