From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32522 invoked by alias); 8 May 2003 17:51:07 -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 32509 invoked from network); 8 May 2003 17:51:06 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 8 May 2003 17:51:06 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 19DpXw-0002B4-00; Thu, 08 May 2003 12:51:09 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19DpXP-0007dB-00; Thu, 08 May 2003 13:50:35 -0400 Date: Thu, 08 May 2003 17:51:00 -0000 From: Daniel Jacobowitz To: Joel Brobecker Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] Fallback unsupported languages to "minimal" Message-ID: <20030508175034.GA29316@nevyn.them.org> Mail-Followup-To: Joel Brobecker , gdb-patches@sources.redhat.com References: <20030508174652.GG2093@gnat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030508174652.GG2093@gnat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-05/txt/msg00119.txt.bz2 On Thu, May 08, 2003 at 10:46:52AM -0700, Joel Brobecker wrote: > Now that we have the "minimal" language, we can change the DWARF2 reader > to fallback to this language, instead of using the "unknown" one. > > See http://sources.redhat.com/ml/gdb-patches/2003-04/msg00112.html for > more details. > > 2002-05-08 J. Brobecker > > * set_cu_language: Set the language to "minimal" if the language > of the CU is not currently supported by GDB. Tsk tsk, changelog formatting :) dwarf2read.c (set_cu_language). > Seems kind of obvious, but it never hurts to ask. Ok to apply? > Index: dwarf2read.c > =================================================================== > RCS file: /cvs/src/src/gdb/dwarf2read.c,v > retrieving revision 1.91 > diff -c -3 -p -r1.91 dwarf2read.c > *** dwarf2read.c 7 May 2003 22:57:30 -0000 1.91 > --- dwarf2read.c 8 May 2003 17:39:56 -0000 > *************** set_cu_language (unsigned int lang) > *** 4548,4554 **** > case DW_LANG_Pascal83: > case DW_LANG_Modula2: > default: > ! cu_language = language_unknown; > break; > } > cu_language_defn = language_def (cu_language); > --- 4548,4554 ---- > case DW_LANG_Pascal83: > case DW_LANG_Modula2: > default: > ! cu_language = language_minimal; > break; > } > cu_language_defn = language_def (cu_language); -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer