From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17453 invoked by alias); 25 Feb 2003 23:18:59 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 17380 invoked from network); 25 Feb 2003 23:18:59 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 172.16.49.205 with SMTP; 25 Feb 2003 23:18:59 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18nqEx-000085-00 for ; Tue, 25 Feb 2003 19:20:07 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18noLh-000859-00 for ; Tue, 25 Feb 2003 18:18:57 -0500 Date: Tue, 25 Feb 2003 23:18:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: Re: [RFC/DWARF2] Fallback unknown language to C? Message-ID: <20030225231857.GA31051@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com References: <20030225230204.GY910@gnat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030225230204.GY910@gnat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-02/txt/msg00675.txt.bz2 On Tue, Feb 25, 2003 at 03:02:04PM -0800, Joel Brobecker wrote: > This is a followup on a concern reported by Stephane Carrez on the > GDB mailing list: > > http://sources.redhat.com/ml/gdb/2003-02/msg00533.html > > > In the past, a gdb without Ada support could be used to, at least, see the > > source. However, we are now in this sad situation where this is no longer > > possible because now gdb complains at unknown languages and... stops. > > I think we shouldn't fail like this because we have some symbols for an > unsupported language. Could we for instance fallback to C for unknown > language symbols. > > I looked at set_cu_language in dwarf2read.c. What would be the > consequences of setting cu_language to language_c in these cases: > > case DW_LANG_Ada83: > case DW_LANG_Ada95: > case DW_LANG_Cobol74: > case DW_LANG_Cobol85: > case DW_LANG_Pascal83: > case DW_LANG_Modula2: > default: > cu_language = language_unknown; > break; I am inclined to agree. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer