OSDN Git Service

* 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)
commitba02bf41eff6f8ceb3f06028bcb343470c50a841
treef0172565307f3893873c7bc56961be52645acc32
parentf2b2e7c0304d50bd119b8d43a34cb0a0ba7db300
* 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