This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[COMMIT] Clean some cruft from remote.c:add_packet_config_cmd()
- From: Kevin Buettner <kevinb at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 15 Apr 2005 10:48:56 -0700
- Subject: [COMMIT] Clean some cruft from remote.c:add_packet_config_cmd()
- Organization: Red Hat
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,