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 | 085461598022e08faf7ea3cb5def97dd04dc104b (patch) | |
tree | 66d39a6b97951d3f3c089363ab4aad929ae2b12e /gdb/remote.c | |
parent | b8285c27bd2e8eee65d32f37fbb804890b21cd5e (diff) | |
download | gdb-085461598022e08faf7ea3cb5def97dd04dc104b.zip gdb-085461598022e08faf7ea3cb5def97dd04dc104b.tar.gz gdb-085461598022e08faf7ea3cb5def97dd04dc104b.tar.bz2 |
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/remote.c')
-rw-r--r-- | gdb/remote.c | 87 |
1 files changed, 55 insertions, 32 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 09e5c8b..2cca182 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -634,7 +634,7 @@ add_packet_config_cmd (struct packet_config *config, char *name, char *title, cmd_sfunc_ftype *set_func, - cmd_sfunc_ftype *show_func, + show_value_ftype *show_func, struct cmd_list_element **set_remote_list, struct cmd_list_element **show_remote_list, int legacy) @@ -750,9 +750,11 @@ set_remote_protocol_vcont_packet_cmd (char *args, int from_tty, } static void -show_remote_protocol_vcont_packet_cmd (char *args, int from_tty, - struct cmd_list_element *c) +show_remote_protocol_vcont_packet_cmd (struct ui_file *file, int from_tty, + struct cmd_list_element *c, + const char *value) { + deprecated_show_value_hack (file, from_tty, c, value); show_packet_config_cmd (&remote_protocol_vcont); } @@ -767,9 +769,11 @@ set_remote_protocol_qSymbol_packet_cmd (char *args, int from_tty, } static void -show_remote_protocol_qSymbol_packet_cmd (char *args, int from_tty, - struct cmd_list_element *c) +show_remote_protocol_qSymbol_packet_cmd (struct ui_file *file, int from_tty, + struct cmd_list_element *c, + const char *value) { + deprecated_show_value_hack (file, from_tty, c, value); show_packet_config_cmd (&remote_protocol_qSymbol); } @@ -785,9 +789,11 @@ set_remote_protocol_P_packet_cmd (char *args, int from_tty, } static void -show_remote_protocol_P_packet_cmd (char *args, int from_tty, - struct cmd_list_element *c) +show_remote_protocol_P_packet_cmd (struct ui_file *file, int from_tty, + struct cmd_list_element *c, + const char *value) { + deprecated_show_value_hack (file, from_tty, c, value); show_packet_config_cmd (&remote_protocol_P); } @@ -816,9 +822,11 @@ set_remote_protocol_Z_software_bp_packet_cmd (char *args, int from_tty, } static void -show_remote_protocol_Z_software_bp_packet_cmd (char *args, int from_tty, - struct cmd_list_element *c) +show_remote_protocol_Z_software_bp_packet_cmd (struct ui_file *file, int from_tty, + struct cmd_list_element *c, + const char *value) { + deprecated_show_value_hack (file, from_tty, c, value); show_packet_config_cmd (&remote_protocol_Z[Z_PACKET_SOFTWARE_BP]); } @@ -830,9 +838,11 @@ set_remote_protocol_Z_hardware_bp_packet_cmd (char *args, int from_tty, } static void -show_remote_protocol_Z_hardware_bp_packet_cmd (char *args, int from_tty, - struct cmd_list_element *c) +show_remote_protocol_Z_hardware_bp_packet_cmd (struct ui_file *file, int from_tty, + struct cmd_list_element *c, + const char *value) { + deprecated_show_value_hack (file, from_tty, c, value); show_packet_config_cmd (&remote_protocol_Z[Z_PACKET_HARDWARE_BP]); } @@ -844,9 +854,11 @@ set_remote_protocol_Z_write_wp_packet_cmd (char *args, int from_tty, } static void -show_remote_protocol_Z_write_wp_packet_cmd (char *args, int from_tty, - struct cmd_list_element *c) +show_remote_protocol_Z_write_wp_packet_cmd (struct ui_file *file, int from_tty, + struct cmd_list_element *c, + const char *value) { + deprecated_show_value_hack (file, from_tty, c, value); show_packet_config_cmd (&remote_protocol_Z[Z_PACKET_WRITE_WP]); } @@ -858,9 +870,11 @@ set_remote_protocol_Z_read_wp_packet_cmd (char *args, int from_tty, } static void -show_remote_protocol_Z_read_wp_packet_cmd (char *args, int from_tty, - struct cmd_list_element *c) +show_remote_protocol_Z_read_wp_packet_cmd (struct ui_file *file, int from_tty, + struct cmd_list_element *c, + const char *value) { + deprecated_show_value_hack (file, from_tty, c, value); show_packet_config_cmd (&remote_protocol_Z[Z_PACKET_READ_WP]); } @@ -872,9 +886,11 @@ set_remote_protocol_Z_access_wp_packet_cmd (char *args, int from_tty, } static void -show_remote_protocol_Z_access_wp_packet_cmd (char *args, int from_tty, - struct cmd_list_element *c) +show_remote_protocol_Z_access_wp_packet_cmd (struct ui_file *file, int from_tty, + struct cmd_list_element *c, + const char *value) { + deprecated_show_value_hack (file, from_tty, c, value); show_packet_config_cmd (&remote_protocol_Z[Z_PACKET_ACCESS_WP]); } @@ -896,8 +912,9 @@ set_remote_protocol_Z_packet_cmd (char *args, int from_tty, } static void -show_remote_protocol_Z_packet_cmd (char *args, int from_tty, - struct cmd_list_element *c) +show_remote_protocol_Z_packet_cmd (struct ui_file *file, int from_tty, + struct cmd_list_element *c, + const char *value) { int i; for (i = 0; i < NR_Z_PACKET_TYPES; i++) @@ -938,9 +955,11 @@ set_remote_protocol_binary_download_cmd (char *args, } static void -show_remote_protocol_binary_download_cmd (char *args, int from_tty, - struct cmd_list_element *c) +show_remote_protocol_binary_download_cmd (struct ui_file *file, int from_tty, + struct cmd_list_element *c, + const char *value) { + deprecated_show_value_hack (file, from_tty, c, value); show_packet_config_cmd (&remote_protocol_binary_download); } @@ -955,9 +974,11 @@ set_remote_protocol_qPart_auxv_packet_cmd (char *args, int from_tty, } static void -show_remote_protocol_qPart_auxv_packet_cmd (char *args, int from_tty, - struct cmd_list_element *c) +show_remote_protocol_qPart_auxv_packet_cmd (struct ui_file *file, int from_tty, + struct cmd_list_element *c, + const char *value) { + deprecated_show_value_hack (file, from_tty, c, value); show_packet_config_cmd (&remote_protocol_qPart_auxv); } @@ -971,9 +992,11 @@ set_remote_protocol_p_packet_cmd (char *args, int from_tty, } static void -show_remote_protocol_p_packet_cmd (char *args, int from_tty, - struct cmd_list_element *c) +show_remote_protocol_p_packet_cmd (struct ui_file *file, int from_tty, + struct cmd_list_element *c, + const char *value) { + deprecated_show_value_hack (file, from_tty, c, value); show_packet_config_cmd (&remote_protocol_p); } @@ -5500,13 +5523,13 @@ show_remote_cmd (char *args, int from_tty) { /* FIXME: cagney/2002-06-15: This function should iterate over remote_show_cmdlist for a list of sub commands to show. */ - show_remote_protocol_Z_packet_cmd (args, from_tty, NULL); - show_remote_protocol_P_packet_cmd (args, from_tty, NULL); - show_remote_protocol_p_packet_cmd (args, from_tty, NULL); - show_remote_protocol_qSymbol_packet_cmd (args, from_tty, NULL); - show_remote_protocol_vcont_packet_cmd (args, from_tty, NULL); - show_remote_protocol_binary_download_cmd (args, from_tty, NULL); - show_remote_protocol_qPart_auxv_packet_cmd (args, from_tty, NULL); + show_remote_protocol_Z_packet_cmd (gdb_stdout, from_tty, NULL, NULL); + show_remote_protocol_P_packet_cmd (gdb_stdout, from_tty, NULL, NULL); + show_remote_protocol_p_packet_cmd (gdb_stdout, from_tty, NULL, NULL); + show_remote_protocol_qSymbol_packet_cmd (gdb_stdout, from_tty, NULL, NULL); + show_remote_protocol_vcont_packet_cmd (gdb_stdout, from_tty, NULL, NULL); + show_remote_protocol_binary_download_cmd (gdb_stdout, from_tty, NULL, NULL); + show_remote_protocol_qPart_auxv_packet_cmd (gdb_stdout, from_tty, NULL, NULL); } static void |