aboutsummaryrefslogtreecommitdiff
path: root/gdb/complaints.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-10 17:32:53 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-10 17:32:53 +0000
commit335cca0d6ecc363f7fd22244823deb8e2a657088 (patch)
tree1968b155ea79f7fc0a41be3f793b55df982a42fa /gdb/complaints.c
parent899506a887012d40285dfbadfe6991442d1aead9 (diff)
downloadgdb-335cca0d6ecc363f7fd22244823deb8e2a657088.zip
gdb-335cca0d6ecc363f7fd22244823deb8e2a657088.tar.gz
gdb-335cca0d6ecc363f7fd22244823deb8e2a657088.tar.bz2
2005-02-10 Andrew Cagney <cagney@gnu.org>
* cli/cli-decode.c (add_setshow_enum_cmd, add_setshow_cmd_full) (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): Replace print string parameter with fprint_setshow function. * command.h (fprint_setshow_ftype): Define. Update declarations. * cli/cli-setshow.c (do_setshow_command): When fprint_setshow is available, use that. * cli/cli-decode.h (struct cmd_list_element): Add field fprint_setshow. * complaints.c (fprint_setshow_complaints): New function. (_initialize_complaints): Pass to add_setshow_zinteger_cmd. * hppa-tdep.c (_initialize_hppa_tdep): Replace "print" parameter with NULL. * mips-tdep.c (_initialize_mips_tdep): Ditto. * m32r-rom.c (_initialize_m32r_rom): Ditto. * cris-tdep.c (_initialize_cris_tdep): Ditto. * arm-tdep.c (_initialize_arm_tdep): Ditto. * remote-rdi.c (_initialize_remote_rdi): Ditto. * alpha-tdep.c (_initialize_alpha_tdep): Ditto. * dwarf2read.c (_initialize_dwarf2_read): Ditto. * frame.c (_initialize_frame): Ditto. * target.c (initialize_targets): Ditto. * maint.c (_initialize_maint_cmds): Ditto. * observer.c (_initialize_observer): Ditto. * infcall.c (_initialize_infcall): Ditto. * breakpoint.c (_initialize_breakpoint): Ditto. * cli/cli-logging.c (_initialize_cli_logging): Ditto. * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
Diffstat (limited to 'gdb/complaints.c')
-rw-r--r--gdb/complaints.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/gdb/complaints.c b/gdb/complaints.c
index 3f9be14..d060090 100644
--- a/gdb/complaints.c
+++ b/gdb/complaints.c
@@ -309,13 +309,23 @@ clear_complaints (struct complaints **c, int less_verbose, int noisy)
complaints->series = SHORT_FIRST_MESSAGE;
}
+static void
+fprint_setshow_complaints (struct cmd_list_element *cmd,
+ struct ui_file *file,
+ const char *value)
+{
+ fprintf_filtered (file, _("Max number of complaints about incorrect"
+ " symbols is %s."),
+ value);
+}
+
void
_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, _("\
-Max number of complaints about incorrect symbols is %s."),
+Show max number of complaints about incorrect symbols."), NULL,
+ fprint_setshow_complaints,
NULL, NULL,
&setlist, &showlist);