Mention language in compile error message
authorLuis Machado <lgustavo@codesourcery.com>
Thu, 27 Aug 2015 05:00:16 +0000 (02:00 -0300)
committerLuis Machado <lgustavo@codesourcery.com>
Thu, 27 Aug 2015 05:00:16 +0000 (02:00 -0300)
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 <language>.

gdb/ChangeLog:

2015-08-26  Luis Machado  <lgustavo@codesourcery.com>

* compile/compile.c (compile_to_object): Mention language in
error message.

gdb/ChangeLog
gdb/compile/compile.c

index 205b1b872b2f48cdaee08bf33e46d1e2c4c3c02f..0323b06684043e857a4ea665027304b9bbef5546 100644 (file)
@@ -1,3 +1,8 @@
+2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
+
+       * compile/compile.c (compile_to_object): Mention language in
+       error message.
+
 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
 
        * target.c (target_pre_inferior): Unset attach_flag.
index d3ce3ba289d54d7ce89e6410216ee8bf4d55f97b..3d710ede27f255cc4b0c0c625df42b83dc1b5d6c 100644 (file)
@@ -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);
 
This page took 0.028702 seconds and 4 git commands to generate.