This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Can't compile gdb/command.c ...
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: Can't compile gdb/command.c ...
- From: Scott Bambrough <scottb at netwinder dot org>
- Date: Mon, 10 Jul 2000 14:30:05 -0400 (EDT)
- Cc: scottb at netwinder dot org
Hi guys,
The autobuild for gdb has been broken for several weeks now. I finally got
around to looking into it. It appears command.c cannot be compiled if gdb
is configured with --enable-gdbmi. The following patch fixes the problem.
Ok to install?
Scott
Index: command.c
===================================================================
RCS file: /cvs/src/src/gdb/command.c,v
retrieving revision 1.14
diff -u -p -r1.14 command.c
--- command.c 2000/06/23 08:12:27 1.14
+++ command.c 2000/07/10 18:24:29
@@ -1811,7 +1811,7 @@ do_setshow_command (arg, from_tty, c)
fputs_filtered (*(int *) c->var ? "on" : "off", stb->stream);
break;
case var_auto_boolean:
- switch (*(enum auto_boolean*) c->var)
+ switch (*(enum cmd_auto_boolean*) c->var)
{
case CMD_AUTO_BOOLEAN_TRUE:
fputs_filtered ("on", stb->stream);