summaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2003-02-14 20:36:58 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2003-02-14 20:36:58 +0000
commitaeddbcc42c71198fc9115a5dab5a31afa0a2666a (patch)
tree37501e8824d8c1022d0694920e43e96b8a924a4f /gdb/cli
parentd44872e52f9015a8878eb7b40eefb33bd051133c (diff)
downloadgdb-aeddbcc42c71198fc9115a5dab5a31afa0a2666a.tar.gz
2003-02-14 Elena Zannoni <ezannoni@redhat.com>
From Brian Ford <ford@vss.fsi.com> * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly conditionalize tui_active test. (lookup_cmd_1): Ditto.
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-decode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c
index a9979f633ba..2a6d196930e 100644
--- a/gdb/cli/cli-decode.c
+++ b/gdb/cli/cli-decode.c
@@ -927,8 +927,10 @@ lookup_cmd_1 (char **text, struct cmd_list_element *clist,
`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++)
;