aboutsummaryrefslogtreecommitdiff
path: root/gdb/compile
diff options
context:
space:
mode:
authorLuis Machado <lgustavo@codesourcery.com>2015-08-27 02:00:16 -0300
committerLuis Machado <lgustavo@codesourcery.com>2015-08-27 02:00:16 -0300
commitcdaec3f3e7ea9118204f0e579bd3257234fbae63 (patch)
tree042e3b01a06422dadcebec0a311d4750ef2eab66 /gdb/compile
parent8ce74153537add5e364865518a72194ab58b3dbc (diff)
downloadgdb-cdaec3f3e7ea9118204f0e579bd3257234fbae63.zip
gdb-cdaec3f3e7ea9118204f0e579bd3257234fbae63.tar.gz
gdb-cdaec3f3e7ea9118204f0e579bd3257234fbae63.tar.bz2
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 <language>. gdb/ChangeLog: 2015-08-26 Luis Machado <lgustavo@codesourcery.com> * compile/compile.c (compile_to_object): Mention language in error message.
Diffstat (limited to 'gdb/compile')
-rw-r--r--gdb/compile/compile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/compile/compile.c b/gdb/compile/compile.c
index d3ce3ba..3d710ed 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);