aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.h
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2019-04-10 23:07:10 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2019-04-29 22:01:06 +0100
commitfc913e53c353218ba1a9efa423c08767691a682a (patch)
tree98da1f67aefa01f76b101e8b3e79c932e0073e5a /gdb/ada-lang.h
parentd2b584a55b658fa52ffa3a42b689940d2e98e969 (diff)
downloadgdb-fc913e53c353218ba1a9efa423c08767691a682a.zip
gdb-fc913e53c353218ba1a9efa423c08767691a682a.tar.gz
gdb-fc913e53c353218ba1a9efa423c08767691a682a.tar.bz2
gdb/ada: Update some predicate functions to return bool
A later commit would like to make use of a pointer to the function ada_is_string_type, however, this will require the function to return a bool (so the signature matches). As the ada_is_string_type is a predicate function, and its return value is only ever used as either true or false, then this commit updates the function to return a bool. As a consequence ada_is_character_type needs to change too. There should be no user visible changes after this commit. gdb/ChangeLog: * ada-lang.c (ada_is_character_type): Change return type to bool. (ada_is_string_type): Likewise. * ada-lang.h (ada_is_character_type): Update declaration (ada_is_string_type): Likewise.
Diffstat (limited to 'gdb/ada-lang.h')
-rw-r--r--gdb/ada-lang.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h
index ee03dbd..8740916 100644
--- a/gdb/ada-lang.h
+++ b/gdb/ada-lang.h
@@ -268,9 +268,9 @@ extern struct value *ada_value_primitive_packed_val (struct value *,
extern struct type *ada_coerce_to_simple_array_type (struct type *);
-extern int ada_is_character_type (struct type *);
+extern bool ada_is_character_type (struct type *);
-extern int ada_is_string_type (struct type *);
+extern bool ada_is_string_type (struct type *);
extern int ada_is_tagged_type (struct type *, int);