gdb/ada: Update some predicate functions to return bool
authorAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 10 Apr 2019 22:07:10 +0000 (23:07 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 29 Apr 2019 21:01:06 +0000 (22:01 +0100)
commitfc913e53c353218ba1a9efa423c08767691a682a
tree98da1f67aefa01f76b101e8b3e79c932e0073e5a
parentd2b584a55b658fa52ffa3a42b689940d2e98e969
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.
gdb/ChangeLog
gdb/ada-lang.c
gdb/ada-lang.h
This page took 0.024848 seconds and 4 git commands to generate.