This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA/DWARF2] Fallback unknown language to C
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Joel Brobecker <brobecker at gnat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 12 Mar 2003 09:58:55 -0500
- Subject: Re: [RFA/DWARF2] Fallback unknown language to C
- References: <20030312014415.GE958@gnat.com>
On Tue, Mar 11, 2003 at 05:44:15PM -0800, Joel Brobecker wrote:
> I am hearing the first rumors of 5.4, I think it would be nice to have
> the following change in. It's a followup on a remark made in this
> message:
>
> http://sources.redhat.com/ml/gdb/2003-02/msg00533.html
>
> (GDB does not work very well when the language is unknown)
>
> 2003-03-11 J. Brobecker <brobecker at gnat dot com>
>
> * dwarf2read.c (set_cu_language): Fall the language back to C
> if it is unsupported.
>
> Ok to commit?
I agree with the remark, but not the method. Does anyone see an
advantage to the unk_* methods calling error() instead of silently
defaulting to the C versions? That seems more appropriate to me.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer