]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ada-lang.c
(Ada) New function ada_is_access_to_unconstrained_array
authorXavier Roirand <roirand@adacore.com>
Mon, 10 Sep 2018 15:32:00 +0000 (10:32 -0500)
committerJoel Brobecker <brobecker@adacore.com>
Mon, 10 Sep 2018 15:32:00 +0000 (11:32 -0400)
commit736ade86ea3dd3df31120b6c617d64c88bcc86c1
tree2ec0cdd6985fbb2a73bbe64fcf41a09976402c24
parent2963898f38dab323a9e381d7c41a26b9c3498882
(Ada) New function ada_is_access_to_unconstrained_array

Add a new function to check if a given type is an access to an
unconstrained array. This function contains code that is present only
once in the current sources but will be used in a future patch.

gdb/ChangeLog:

        * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
        (ada_check_typedef): Use it.

Tested on x86_64-linux.
gdb/ChangeLog
gdb/ada-lang.c