aboutsummaryrefslogtreecommitdiff
path: root/gdb/language.c
diff options
context:
space:
mode:
authorChristian Biesinger <cbiesinger@google.com>2019-10-07 12:55:44 -0500
committerChristian Biesinger <cbiesinger@google.com>2019-10-08 10:14:57 -0500
commit34916edc47a26d591bf95784cd90fe1dcd533ab5 (patch)
tree6014b017e3b13e6b363dffa815f3a2b2c825c589 /gdb/language.c
parentb7d9d3ee59236d6039d7d7ccd17ff6b47e07a8aa (diff)
downloadgdb-34916edc47a26d591bf95784cd90fe1dcd533ab5.zip
gdb-34916edc47a26d591bf95784cd90fe1dcd533ab5.tar.gz
gdb-34916edc47a26d591bf95784cd90fe1dcd533ab5.tar.bz2
Move declaration of lang_frame_mismatch_warn to header.
Also makes it localizable. gdb/ChangeLog: 2019-10-08 Christian Biesinger <cbiesinger@google.com> * language.c (show_language_command): Pass lang_frame_mismatch_warn through _(). (lang_frame_mismatch_warn): Make const, mark with N_(), and move comment... * language.h (lang_frame_mismatch_warn): ... here. Also add declaration. * top.c (lang_frame_mismatch_warn): Remove declaration. (check_frame_language_change): Pass lang_frame_mismatch_warn through _().
Diffstat (limited to 'gdb/language.c')
-rw-r--r--gdb/language.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/language.c b/gdb/language.c
index e95084f..02c448f 100644
--- a/gdb/language.c
+++ b/gdb/language.c
@@ -112,10 +112,9 @@ static const char *language;
static const char *range;
static const char *case_sensitive;
-/* Warning issued when current_language and the language of the current
- frame do not match. */
-char lang_frame_mismatch_warn[] =
-"Warning: the current language does not match this frame.";
+/* See language.h. */
+const char lang_frame_mismatch_warn[] =
+N_("Warning: the current language does not match this frame.");
/* This page contains the functions corresponding to GDB commands
and their helpers. */
@@ -147,7 +146,7 @@ show_language_command (struct ui_file *file, int from_tty,
if (flang != language_unknown
&& language_mode == language_mode_manual
&& current_language->la_language != flang)
- printf_filtered ("%s\n", lang_frame_mismatch_warn);
+ printf_filtered ("%s\n", _(lang_frame_mismatch_warn));
}
}