From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120584 invoked by alias); 24 Aug 2015 16:20:52 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 120573 invoked by uid 89); 24 Aug 2015 16:20:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 24 Aug 2015 16:20:49 +0000 Received: from svr-orw-fem-05.mgc.mentorg.com ([147.34.97.43]) by relay1.mentorg.com with esmtp id 1ZTuUI-0000Fx-LD from Luis_Gustavo@mentor.com for gdb-patches@sourceware.org; Mon, 24 Aug 2015 09:20:46 -0700 Received: from [172.30.14.237] (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.3.224.2; Mon, 24 Aug 2015 09:20:46 -0700 Message-ID: <55DB4457.7090507@codesourcery.com> Date: Mon, 24 Aug 2015 16:20:00 -0000 From: Luis Machado Reply-To: Luis Machado User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Subject: Re: [PATCH] Mention language in compile error message References: <1440011181-32004-1-git-send-email-lgustavo@codesourcery.com> In-Reply-To: <1440011181-32004-1-git-send-email-lgustavo@codesourcery.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00687.txt.bz2 I suppose this is obvious enough that could be pushed? On 08/19/2015 04:06 PM, Luis Machado wrote: > This patch improves one of the compile error messages by mentioning the > language. > > Before - No compiler support for this language. > After - No compiler support for language . > > How does that look? > > gdb/ChangeLog: > > 2015-08-19 Luis Machado > > * compile/compile.c (compile_to_object): Mention language in > error message. > --- > gdb/compile/compile.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/gdb/compile/compile.c b/gdb/compile/compile.c > index 499c530..ff68b2d 100644 > --- a/gdb/compile/compile.c > +++ b/gdb/compile/compile.c > @@ -491,7 +491,8 @@ compile_to_object (struct command_line *cmd, const char *cmd_string, > > /* Set up instance and context for the compiler. */ > if (current_language->la_get_compile_instance == NULL) > - error (_("No compiler support for this language.")); > + error (_("No compiler support for language %s."), > + current_language->la_name); > compiler = current_language->la_get_compile_instance (); > cleanup = make_cleanup (cleanup_compile_instance, compiler); > >