aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.h
diff options
context:
space:
mode:
authorXavier Roirand <roirand@adacore.com>2018-09-10 10:35:58 -0500
committerJoel Brobecker <brobecker@adacore.com>2018-09-10 11:35:58 -0400
commitd91e9ea81dce83259f2a7f32f43876373f3e7981 (patch)
tree63b8cff9aa5180065b7274341bbf604cf58be58e /gdb/ada-lang.h
parentcc330e39bc938cefd4cfc581639177ef4c6bcbe3 (diff)
downloadfsf-binutils-gdb-d91e9ea81dce83259f2a7f32f43876373f3e7981.zip
fsf-binutils-gdb-d91e9ea81dce83259f2a7f32f43876373f3e7981.tar.gz
fsf-binutils-gdb-d91e9ea81dce83259f2a7f32f43876373f3e7981.tar.bz2
(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.
Diffstat (limited to 'gdb/ada-lang.h')
-rw-r--r--gdb/ada-lang.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h
index 90bfa0a..ee5394c 100644
--- a/gdb/ada-lang.h
+++ b/gdb/ada-lang.h
@@ -194,6 +194,8 @@ extern void ada_printstr (struct ui_file *, struct type *, const gdb_byte *,
struct value *ada_convert_actual (struct value *actual,
struct type *formal_type0);
+extern bool ada_is_access_to_unconstrained_array (struct type *type);
+
extern struct value *ada_value_subscript (struct value *, int,
struct value **);