From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11797 invoked by alias); 8 May 2003 18:02:17 -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 11786 invoked from network); 8 May 2003 18:02:17 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 8 May 2003 18:02:17 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h48I2GH07647 for ; Thu, 8 May 2003 14:02:17 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h48I2GI28910 for ; Thu, 8 May 2003 14:02:16 -0400 Received: from localhost.redhat.com (romulus-int.sfbay.redhat.com [172.16.27.46]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h48I2G802345 for ; Thu, 8 May 2003 14:02:16 -0400 Received: by localhost.redhat.com (Postfix, from userid 469) id EC2062C43C; Thu, 8 May 2003 14:07:08 -0400 (EDT) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16058.40140.805399.509033@localhost.redhat.com> Date: Thu, 08 May 2003 18:02:00 -0000 To: Joel Brobecker Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] Fallback unsupported languages to "minimal" In-Reply-To: <20030508174652.GG2093@gnat.com> References: <20030508174652.GG2093@gnat.com> X-SW-Source: 2003-05/txt/msg00121.txt.bz2 Joel Brobecker writes: > 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. > > Seems kind of obvious, but it never hurts to ask. Ok to apply? > yes. elena > -- > Joel > 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);