From: Luis Machado Date: Thu, 27 Aug 2015 05:00:16 +0000 (-0300) Subject: Mention language in compile error message X-Git-Tag: users/hjl/linux/release/2.25.51.0.4~1^2~34^2~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cdaec3f3e7ea9118204f0e579bd3257234fbae63;p=thirdparty%2Fbinutils-gdb.git Mention language in compile error message 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 . gdb/ChangeLog: 2015-08-26 Luis Machado * compile/compile.c (compile_to_object): Mention language in error message. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 205b1b872b2..0323b066840 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-08-26 Luis Machado + + * compile/compile.c (compile_to_object): Mention language in + error message. + 2015-08-26 Patrick Palka * target.c (target_pre_inferior): Unset attach_flag. diff --git a/gdb/compile/compile.c b/gdb/compile/compile.c index d3ce3ba289d..3d710ede27f 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);