From patchwork Wed Aug 19 19:06:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Machado X-Patchwork-Id: 8306 Received: (qmail 2121 invoked by alias); 19 Aug 2015 19:06:31 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 2105 invoked by uid 89); 19 Aug 2015 19:06:31 -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; Wed, 19 Aug 2015 19:06:29 +0000 Received: from svr-orw-fem-04.mgc.mentorg.com ([147.34.97.41]) by relay1.mentorg.com with esmtp id 1ZS8pY-0002Rf-Sy from Luis_Gustavo@mentor.com for gdb-patches@sourceware.org; Wed, 19 Aug 2015 12:15:24 -0700 Received: from opsys.world.mentorg.com (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.3.224.2; Wed, 19 Aug 2015 12:06:26 -0700 From: Luis Machado To: Subject: [PATCH] Mention language in compile error message Date: Wed, 19 Aug 2015 16:06:21 -0300 Message-ID: <1440011181-32004-1-git-send-email-lgustavo@codesourcery.com> MIME-Version: 1.0 X-IsSubscribed: yes 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);