This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: cli-decode.c and tui_active
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: Brian Ford <ford at vss dot fsi dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 14 Feb 2003 15:41:11 -0500
- Subject: Re: cli-decode.c and tui_active
- References: <Pine.GSO.4.44.0302141349000.21272-200000@eos>
Brian Ford writes:
> The following trivial patch is needed to build cvs gdb on Cygwin on
> anywhere TUI is not defined:
>
> 2003-02-14 Brian Ford <ford@vss.fsi.com>
>
> * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
> conditionalize tui_active test.
thanks, I've committed the fix.
elena
>
> --
> Brian Ford
> Senior Realtime Software Engineer
> VITAL - Visual Simulation Systems
> FlightSafety International
> Phone: 314-551-8460
> Fax: 314-551-8444
> Index: cli-decode.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/cli/cli-decode.c,v
> retrieving revision 1.29
> diff -u -p -u -p -r1.29 cli-decode.c
> --- cli-decode.c 14 Feb 2003 13:58:06 -0000 1.29
> +++ cli-decode.c 14 Feb 2003 19:55:11 -0000
> @@ -927,8 +927,10 @@ lookup_cmd_1 (char **text, struct cmd_li
> `tui_version'. */
> for (p = *text;
> *p && (isalnum (*p) || *p == '-' || *p == '_' ||
> +#if defined(TUI)
> (tui_active &&
> (*p == '+' || *p == '<' || *p == '>' || *p == '$')) ||
> +#endif
> (xdb_commands && (*p == '!' || *p == '/' || *p == '?')));
> p++)
> ;
> @@ -1299,8 +1301,10 @@ lookup_cmd_composition (char *text,
> `tui_version'. */
> for (p = text;
> *p && (isalnum (*p) || *p == '-' || *p == '_' ||
> +#if defined(TUI)
> (tui_active &&
> (*p == '+' || *p == '<' || *p == '>' || *p == '$')) ||
> +#endif
> (xdb_commands && (*p == '!' || *p == '/' || *p == '?')));
> p++)
> ;