[COMMIT] Clean some cruft from remote.c:add_packet_config_cmd()
Kevin Buettner
kevinb@redhat.com
Fri Apr 15 17:49:00 GMT 2005
I've just committed the patch below.
* remote.c (add_packet_config_cmd): Delete unused variables.
Index: remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.180
diff -u -p -r1.180 remote.c
--- remote.c 15 Apr 2005 17:13:23 -0000 1.180
+++ remote.c 15 Apr 2005 17:41:09 -0000
@@ -640,13 +640,10 @@ add_packet_config_cmd (struct packet_con
struct cmd_list_element **show_remote_list,
int legacy)
{
- struct cmd_list_element *set_cmd;
- struct cmd_list_element *show_cmd;
char *set_doc;
char *show_doc;
- char *help_doc;
- char *print;
char *cmd_name;
+
config->name = name;
config->title = title;
config->detect = AUTO_BOOLEAN_AUTO;
@@ -655,8 +652,6 @@ add_packet_config_cmd (struct packet_con
name, title);
show_doc = xstrprintf ("Show current use of remote protocol `%s' (%s) packet",
name, title);
- print = xstrprintf ("Current use of remote protocol `%s' (%s) is %%s",
- name, title);
/* set/show TITLE-packet {auto,on,off} */
cmd_name = xstrprintf ("%s-packet", title);
add_setshow_auto_boolean_cmd (cmd_name, class_obscure,
More information about the Gdb-patches
mailing list