Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* cli-decode.c and tui_active
@ 2003-02-14 19:56 Brian Ford
  2003-02-14 20:37 ` Elena Zannoni
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Ford @ 2003-02-14 19:56 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: TEXT/PLAIN, Size: 387 bytes --]

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.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

[-- Attachment #2: Type: TEXT/PLAIN, Size: 1072 bytes --]

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++)
       ;

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cli-decode.c and tui_active
  2003-02-14 19:56 cli-decode.c and tui_active Brian Ford
@ 2003-02-14 20:37 ` Elena Zannoni
  2003-02-19 23:35   ` Andrew Cagney
  0 siblings, 1 reply; 3+ messages in thread
From: Elena Zannoni @ 2003-02-14 20:37 UTC (permalink / raw)
  To: Brian Ford; +Cc: gdb-patches

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++)
 >        ;


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cli-decode.c and tui_active
  2003-02-14 20:37 ` Elena Zannoni
@ 2003-02-19 23:35   ` Andrew Cagney
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Cagney @ 2003-02-19 23:35 UTC (permalink / raw)
  To: Elena Zannoni; +Cc: Brian Ford, gdb-patches

> 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.

Thanks!

Andrew


>  > -- 
>  > 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++)
>  >        ;
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-02-19 23:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-14 19:56 cli-decode.c and tui_active Brian Ford
2003-02-14 20:37 ` Elena Zannoni
2003-02-19 23:35   ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox