aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-04-21 20:21:36 -0600
committerTom Tromey <tom@tromey.com>2019-05-04 14:13:27 -0600
commit6fe876770ad6739a5b3ca50f53dfcfbe433ba0fa (patch)
tree9869213fc7ce5eaa92b9538ccd32679511126646 /gdb/cli
parent7f008c9e6a3cbb248f5b6e8638af4b9d5225981b (diff)
downloadgdb-6fe876770ad6739a5b3ca50f53dfcfbe433ba0fa.zip
gdb-6fe876770ad6739a5b3ca50f53dfcfbe433ba0fa.tar.gz
gdb-6fe876770ad6739a5b3ca50f53dfcfbe433ba0fa.tar.bz2
Change valid_command_p to return bool
This changes valid_command_p to return bool. gdb/ChangeLog 2019-05-04 Tom Tromey <tom@tromey.com> * cli/cli-cmds.c (valid_command_p): Return bool.
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-cmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index 5f3b973..3d8e238 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -1355,9 +1355,9 @@ argv_to_string (char **argv, int n)
}
/* Subroutine of alias_command to simplify it.
- Return TRUE if COMMAND exists, unambiguously. Otherwise FALSE. */
+ Return true if COMMAND exists, unambiguously. Otherwise false. */
-static int
+static bool
valid_command_p (const char *command)
{
struct cmd_list_element *c;
@@ -1365,7 +1365,7 @@ valid_command_p (const char *command)
c = lookup_cmd_1 (& command, cmdlist, NULL, 1);
if (c == NULL || c == (struct cmd_list_element *) -1)
- return FALSE;
+ return false;
/* This is the slightly tricky part.
lookup_cmd_1 will return a pointer to the last part of COMMAND