This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] Remove unused declaration in top.c
- To: gdb-patches at sources dot redhat dot com
- Subject: [RFA] Remove unused declaration in top.c
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Date: Thu, 17 May 2001 17:53:09 +0300 (IDT)
I'm asking for approval of the following patch which removes an unused
definition of struct user_args variable in top.c. AFAICS, this is a
relic left behind when cli-* files were separated from top.c. The reason
I payed attention to it was that the Irix linker printed a warning about
duplicate definition (one in top.c, the other in cli-script.c).
Okay to commit? (It looks like an obvious fix, but...)
2001-05-17 Eli Zaretskii <eliz@is.elta.co.il>
* top.c (user_args): Remove unused declaration.
--- gdb/top.c~ Thu Apr 5 18:59:30 2001
+++ gdb/top.c Thu May 17 17:36:24 2001
@@ -224,21 +224,6 @@
/* Level of control structure. */
static int control_level;
-/* Structure for arguments to user defined functions. */
-#define MAXUSERARGS 10
-struct user_args
- {
- struct user_args *next;
- struct
- {
- char *arg;
- int len;
- }
- a[MAXUSERARGS];
- int count;
- }
- *user_args;
-
/* Signal to catch ^Z typed while reading a command: SIGTSTP or SIGCONT. */
#ifndef STOP_SIGNAL