gdb: make get_discrete_bounds return bool
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 9 Dec 2020 18:51:57 +0000 (13:51 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 9 Dec 2020 18:51:57 +0000 (13:51 -0500)
commit1f8d2881175920d389078852bb1ff0799d744599
tree983b6e53db1f95649e8f90c94fe01f7f15b4c443
parent6244c1196a49a5732ac3667b4df0f157cf681d7b
gdb: make get_discrete_bounds return bool

get_discrete_bounds currently has three possible return values (see its
current doc for details).  It appears that for all callers, it would be
sufficient to have a boolean "worked" / "didn't work" return value.

Change the return type of get_discrete_bounds to bool and adjust all
callers.  Doing so simplifies the following patch.

gdb/ChangeLog:

* gdbtypes.h (get_discrete_bounds): Return bool, adjust all
callers.
* gdbtypes.c (get_discrete_bounds): Return bool.

Change-Id: Ie51feee23c75f0cd7939742604282d745db59172
14 files changed:
gdb/ChangeLog
gdb/ada-lang.c
gdb/ada-valprint.c
gdb/c-lang.c
gdb/eval.c
gdb/f-array-walker.h
gdb/f-lang.c
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/m2-typeprint.c
gdb/m2-valprint.c
gdb/p-valprint.c
gdb/valarith.c
gdb/valops.c