diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-16 17:20:59 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-16 17:20:59 +0000 |
commit | 06d6d281b1ca65f33d6ad7a99862f2e12180b01d (patch) | |
tree | 79d1f8c10189c8b24da81ad26edd6e467e68c43a /gdb/complaints.c | |
parent | 9c2f71c14b50bad796054eb1f72c0b1e82ad94eb (diff) | |
download | gdb-06d6d281b1ca65f33d6ad7a99862f2e12180b01d.tar.gz |
2005-02-16 Andrew Cagney <cagney@gnu.org>
Merge setshow print and show parameters.
* command.h (show_value_ftype): Define.
(deprecated_show_value_hack): Declare.
(add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
(add_setshow_boolean_cmd, add_setshow_filename_cmd)
(add_setshow_string_cmd, add_setshow_uinteger_cmd)
(add_setshow_zinteger_cmd): Change type of show_func to
show_value_ftype.
* cli/cli-decode.h (struct cmd_list_element): Replace
fprint_setshow with show_value_func.
* cli/cli-decode.c (add_setshow_cmd_full): Update show_func
parameter. Set show_value_func. Do not set cmd_sfunc.
(add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
(add_setshow_boolean_cmd, add_setshow_filename_cmd)
(add_setshow_string_cmd, add_setshow_uinteger_cmd)
(add_setshow_zinteger_cmd): Update.
* complaints.c (complaints_show_value): Replace
fprint_setshow_complaints.
(_initialize_complaints): Update.
* mips-tdep.c (show_mask_address): Update.
* arm-tdep.c (show_fp_model): Update.
* cli/cli-setshow.c (do_setshow_command): Call show_value_func
instead of fprint_setshow. Use deprecated_show_value_hack.
(deprecated_show_value_hack): New function.
* remote.c (add_packet_config_cmd, show_remote_cmd):
(show_remote_protocol_P_packet_cmd)
(show_remote_protocol_P_packet_cmd)
(show_remote_protocol_Z_access_wp_packet_cmd)
(show_remote_protocol_Z_hardware_bp_packet_cmd)
(show_remote_protocol_Z_packet_cmd)
(show_remote_protocol_Z_read_wp_packet_cmd)
(show_remote_protocol_Z_software_bp_packet_cmd)
(show_remote_protocol_Z_write_wp_packet_cmd)
(show_remote_protocol_binary_download_cmd)
(show_remote_protocol_p_packet_cmd)
(show_remote_protocol_qPart_auxv_packet_cmd)
(show_remote_protocol_qSymbol_packet_cmd)
(show_remote_protocol_vcont_packet_cmd): Update.
Diffstat (limited to 'gdb/complaints.c')
-rw-r--r-- | gdb/complaints.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gdb/complaints.c b/gdb/complaints.c index d060090927e..c2084e6cedd 100644 --- a/gdb/complaints.c +++ b/gdb/complaints.c @@ -310,12 +310,11 @@ clear_complaints (struct complaints **c, int less_verbose, int noisy) } static void -fprint_setshow_complaints (struct cmd_list_element *cmd, - struct ui_file *file, - const char *value) +complaints_show_value (struct ui_file *file, int from_tty, + struct cmd_list_element *cmd, const char *value) { fprintf_filtered (file, _("Max number of complaints about incorrect" - " symbols is %s."), + " symbols is %s.\n"), value); } @@ -325,8 +324,7 @@ _initialize_complaints (void) add_setshow_zinteger_cmd ("complaints", class_support, &stop_whining, _("\ Set max number of complaints about incorrect symbols."), _("\ Show max number of complaints about incorrect symbols."), NULL, - fprint_setshow_complaints, - NULL, NULL, + NULL, /* IGNORE */ + NULL, complaints_show_value, &setlist, &showlist); - } |