diff options
author | Christian Biesinger <cbiesinger@google.com> | 2019-10-07 12:55:44 -0500 |
---|---|---|
committer | Christian Biesinger <cbiesinger@google.com> | 2019-10-08 10:14:57 -0500 |
commit | 34916edc47a26d591bf95784cd90fe1dcd533ab5 (patch) | |
tree | 6014b017e3b13e6b363dffa815f3a2b2c825c589 /gdb/language.h | |
parent | b7d9d3ee59236d6039d7d7ccd17ff6b47e07a8aa (diff) | |
download | gdb-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.h')
-rw-r--r-- | gdb/language.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/language.h b/gdb/language.h index 0088e5d..aa19f8e 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -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) |