2009-08-13 Pedro Alves <pedro@codesourcery.com>
authorPedro Alves <palves@redhat.com>
Thu, 13 Aug 2009 14:58:27 +0000 (14:58 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 13 Aug 2009 14:58:27 +0000 (14:58 +0000)
commitb84aa90aa5b2c265030ca85a70a4547f8f893690
tree0c3dc61f8a3e6cbba1bef1f8ea963909ac7a03cc
parent5efd5804f7ba64dc4c42d8c3db2d4ab2eeebac75
2009-08-13  Pedro Alves  <pedro@codesourcery.com>

PR gdb/8869:

* language.c (language, type, range, case_sensitive): Make const.
(show_language_command): Don't call deprecated_show_value_hack.
Special case "auto".
(set_language_command): An unrecognized language is now an
internal error instead of a user error.  Don't call set_lang_str.
(show_type_command): Don't call deprecated_show_value_hack.
Special case "auto".  Use warning.
(set_type_command): An unrecognized type is now an internal error
instead of a user error.  Output type check mismatch with language
here.  Don't call set_type_str.
(show_range_command): Don't call deprecated_show_value_hack.
Special case "auto".  Use warning.
(set_range_command): An unrecognized range check is now an
internal error instead of a warning.  Output range check mismatch
with language here.  Don't call set_range_str.
(show_case_command): Don't call deprecated_show_value_hack.
Special case "auto".  Use warning.
(set_case_command): Don't call set_case_str.  An unrecognized case
check is now an internal error instead of a warning.  Output range
check mismatch with language here.  Don't call set_case_str.
(set_type_range_case): Don't call set_type_str, set_range_str or
set_case_str here.
(set_lang_str, set_type_str, set_range_str, set_case_str): Delete.
(add_language): Install or reinstall the "set language" command
here, and make it an enum command.  Build the enumeration and the
help string from the current list of known languages.
(_initialize_language): Don't install "set language" here.  Make
"set check type", "set check range" and "set case-sensitive" enum
commands.  Register the "auto" "local" and "unknown" languages in
that order.

2009-08-13  Pedro Alves  <pedro@codesourcery.com>

* gdb.base/default.exp: Adjust "set language test": it's now an
enum command.  Larger help string moved to "help set language".
* gdb.base/help.exp: Adjust "help set language" expected output,
now lists all known languages.
gdb/ChangeLog
gdb/language.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/default.exp
gdb/testsuite/gdb.base/help.exp
This page took 0.025326 seconds and 4 git commands to generate.