(Ada) Cleanup code by using ada_is_access_to_unconstrained_array call.
authorXavier Roirand <roirand@adacore.com>
Mon, 10 Sep 2018 15:35:58 +0000 (10:35 -0500)
committerJoel Brobecker <brobecker@adacore.com>
Mon, 10 Sep 2018 15:35:58 +0000 (11:35 -0400)
commitd91e9ea81dce83259f2a7f32f43876373f3e7981
tree63b8cff9aa5180065b7274341bbf604cf58be58e
parentcc330e39bc938cefd4cfc581639177ef4c6bcbe3
(Ada) Cleanup code by using ada_is_access_to_unconstrained_array call.

This patch just avoids code duplication by using a function we
introduced recently (ada_is_access_to_unconstrained_array).

gdb/ChangeLog:

    * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
    declaration.
    * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
    * ada-varobj.c (ada_varobj_get_number_of_children,
    ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.

Tested on x86_64-linux.
No new testcase provided, as this is just a refactoring.
gdb/ChangeLog
gdb/ada-lang.c
gdb/ada-lang.h
gdb/ada-varobj.c