OSDN Git Service

* ada-lang.c (ada_index_type): Make static. Add NAME argument.
authorUlrich Weigand <uweigand@de.ibm.com>
Mon, 29 Jun 2009 17:22:09 +0000 (17:22 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Mon, 29 Jun 2009 17:22:09 +0000 (17:22 +0000)
commit0e634cdb16e844dd5cc227d7eee965eaccabc42c
tree6e6d8fea2e4932937d070e669ca0e5fd1ccf2082
parent0133c8df6d676a6a3861092dfae8df8c41b4613b
* ada-lang.c (ada_index_type): Make static.  Add NAME argument.
Throw error on invalid input arguments.  Return NULL if unable
to determine index type.

(ada_array_bound_from_type): Remove TYPEP argument.
(ada_array_bound): Make static.  Return LONGEST instead of value.
Update for ada_array_bound_from_type change.
(ada_array_length): Return LONGEST instead of value.
Update for ada_array_bound_from_type change.
(make_array_descriptor): Update for ada_array_bound change.

(ada_evaluate_subexp) [OP_ATR_RANGE, OP_ATR_FIRST, OP_ATR_LAST,
OP_ATR_LENGTH]: Update for ada_array_bound_from_type,
ada_array_bound, ada_array_length, ada_index_type changes.
Always use ada_index_type to compute result type; fall back
to architecture-specific integer type if ada_index_type fails.

* ada-lang.h (ada_index_type): Remove prototype.
(ada_array_bound): Likewise.
gdb/ChangeLog
gdb/ada-lang.c
gdb/ada-lang.h