From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31239 invoked by alias); 8 May 2003 17:46: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 31229 invoked from network); 8 May 2003 17:46:58 -0000 Received: from unknown (HELO takamaka.act-europe.fr) (142.179.108.108) by sources.redhat.com with SMTP; 8 May 2003 17:46:58 -0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id CB79DD34B8; Thu, 8 May 2003 10:46:52 -0700 (PDT) Date: Thu, 08 May 2003 17:46:00 -0000 From: Joel Brobecker To: gdb-patches@sources.redhat.com Subject: [RFA] Fallback unsupported languages to "minimal" Message-ID: <20030508174652.GG2093@gnat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="HlL+5n6rz5pIUxbD" Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2003-05/txt/msg00118.txt.bz2 --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 474 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? -- Joel --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="dw2.diff" Content-length: 742 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); --HlL+5n6rz5pIUxbD--