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 _().
This commit is contained in:
Christian Biesinger
2019-10-07 12:55:44 -05:00
parent b7d9d3ee59
commit 34916edc47
4 changed files with 22 additions and 8 deletions

View File

@@ -483,6 +483,11 @@ extern const struct language_defn *current_language;
extern const struct language_defn *expected_language;
/* Warning issued when current_language and the language of the current
frame do not match. */
extern const char lang_frame_mismatch_warn[];
/* language_mode ==
language_mode_auto: current_language automatically set upon selection
of scope (e.g. stack frame)