This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH/RFC] faster language identification
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Elias Athanasopoulos <eathan at otenet dot gr>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 7 Nov 2002 14:34:09 -0500
- Subject: Re: [PATCH/RFC] faster language identification
- References: <20021107224622.D1136@neutrino.particles.org>
On Thu, Nov 07, 2002 at 10:46:22PM +0200, Elias Athanasopoulos wrote:
> Hi all,
>
> DWARFx encodes the language. In such a case, I think it is more
> reliable to get the language from the object, instead of looking at the
> source files' extensions.
>
> Comments?
Please don't. See:
/* Set the initial language.
A better solution would be to record the language in the psymtab when reading
partial symbols, and then use it (if known) to set the language. This would
be a win for formats that encode the language in an easily discoverable place,
such as DWARF. For stabs, we can jump through hoops looking for specially
named symbols or try to intuit the language from the specific type of stabs
we find, but we can't do that until later when we read in full symbols.
FIXME. */
static void
set_initial_language (void)
Either that or there should be a psymtab_language() method somewhere.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer