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.
This commit is contained in:
Andrew Cagney
2005-02-10 17:32:53 +00:00
parent 899506a887
commit 335cca0d6e
22 changed files with 158 additions and 90 deletions

View File

@@ -660,7 +660,7 @@ add_packet_config_cmd (struct packet_config *config,
cmd_name = xstrprintf ("%s-packet", title);
add_setshow_auto_boolean_cmd (cmd_name, class_obscure,
&config->detect, set_doc, show_doc,
"", print,
"", NULL /*print*/,
set_func, show_func,
set_remote_list, show_remote_list);
/* set/show remote NAME-packet {auto,on,off} -- legacy. */
@@ -5600,8 +5600,8 @@ terminating `#' character and checksum.",
add_setshow_boolean_cmd ("remotebreak", no_class, &remote_break, "\
Set whether to send break if interrupted.", "\
Show whether to send break if interrupted.", "\
If set, a break, instead of a cntrl-c, is sent to the remote target.", "\
Whether to send break if interrupted is %s.",
If set, a break, instead of a cntrl-c, is sent to the remote target.",
NULL, /* PRINT: Whether to send break if interrupted is %s. */
NULL, NULL,
&setlist, &showlist);
@@ -5642,16 +5642,16 @@ Whether to send break if interrupted is %s.",
&remote_hw_watchpoint_limit, "\
Set the maximum number of target hardware watchpoints.", "\
Show the maximum number of target hardware watchpoints.", "\
Specify a negative limit for unlimited.", "\
The maximum number of target hardware watchpoints is %s.",
Specify a negative limit for unlimited.",
NULL, /* PRINT: The maximum number of target hardware watchpoints is %s. */
NULL, NULL,
&remote_set_cmdlist, &remote_show_cmdlist);
add_setshow_zinteger_cmd ("hardware-breakpoint-limit", no_class,
&remote_hw_breakpoint_limit, "\
Set the maximum number of target hardware breakpoints.", "\
Show the maximum number of target hardware breakpoints.", "\
Specify a negative limit for unlimited.", "\
The maximum number of target hardware breakpoints is %s.",
Specify a negative limit for unlimited.",
NULL, /* PRINT: The maximum number of target hardware breakpoints is %s. */
NULL, NULL,
&remote_set_cmdlist, &remote_show_cmdlist);
@@ -5755,8 +5755,8 @@ in a memory packet.\n",
Set use of remote protocol `Z' packets", "\
Show use of remote protocol `Z' packets ", "\
When set, GDB will attempt to use the remote breakpoint and watchpoint\n\
packets.", "\
Use of remote protocol `Z' packets is %s",
packets.",
NULL, /* PRINT: Use of remote protocol `Z' packets is %s. */
set_remote_protocol_Z_packet_cmd,
show_remote_protocol_Z_packet_cmd,
&remote_set_cmdlist, &remote_show_cmdlist);