This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Can't compile gdb/command.c ...


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]