aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.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/top.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/top.c')
-rw-r--r--gdb/top.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/top.c b/gdb/top.c
index a1a08e0..78355a0 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -110,8 +110,6 @@ gen_ret_current_ui_field_ptr (struct ui_out *, current_uiout)
int inhibit_gdbinit = 0;
-extern char lang_frame_mismatch_warn[]; /* language.c */
-
/* Flag for whether we want to confirm potentially dangerous
operations. Default is yes. */
@@ -492,7 +490,7 @@ check_frame_language_change (void)
&& flang != language_unknown
&& flang != current_language->la_language)
{
- printf_filtered ("%s\n", lang_frame_mismatch_warn);
+ printf_filtered ("%s\n", _(lang_frame_mismatch_warn));
warned = 1;
}
}