This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Can't compile gdb/command.c ...
- To: Scott Bambrough <scottb at netwinder dot org>
- Subject: Re: Can't compile gdb/command.c ...
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Tue, 11 Jul 2000 10:35:20 +1000
- CC: gdb-patches at sourceware dot cygnus dot com
- References: <200007101830.OAA12856@mask.netwinder.org>
Scott Bambrough wrote:
>
> 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);
Yes and thanks.
Andrew