]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ada-lang.c
* ada-lang.c (to_fixed_range_type): Add ORIG_TYPE argument.
authorUlrich Weigand <uweigand@de.ibm.com>
Mon, 29 Jun 2009 17:28:59 +0000 (17:28 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Mon, 29 Jun 2009 17:28:59 +0000 (17:28 +0000)
commit1ce677a4a194224337e88b3b6d365b5dd66714bd
tree2c9686264a3f96bb2f7613db99bc57c4312c14a1
parentdd19d49e4bda8bf973f8e178f19e6d643298876f
* ada-lang.c (to_fixed_range_type): Add ORIG_TYPE argument.
Fall back to orig_type as index type if symbol lookup fails.
Allocate result types from ORIG_TYPE's objfile.
(ada_array_bound_from_type, to_fixed_array_type,
ada_evaluate_subexp): Pass original index type to
to_fixed_range_type.  Do not pass objfile.

* ada-typeprint.c (print_range_type_named): Add ORIG_TYPE argument.
Fall back to orig_type as index type if symbol lookup fails.
(print_array_type, ada_print_type): Pass original index type
to print_range_type_named.
gdb/ChangeLog
gdb/ada-lang.c
gdb/ada-typeprint.c