OSDN Git Service

* ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
authorhilfingr <hilfingr>
Tue, 19 Aug 2008 10:10:38 +0000 (10:10 +0000)
committerhilfingr <hilfingr>
Tue, 19 Aug 2008 10:10:38 +0000 (10:10 +0000)
commit2f3120cb5c82b4fffd65ece797b21c9360396c04
treee3b5394a1c76481aee815b0ba388984392e77b9b
parent0e1775f29fe442189dd5dd3c03b6c8d5e3604961
* ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
API to return LONGEST values rather than struct values.
(ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
and discrete_type_high_bound.
(to_fixed_range_type): Create a range type in cases where
argument is base type and its limits are representable as ints.
(ada_is_modular_type): Correct so that base type must be integral.
* ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
keywords when they appear alone, since we are phasing out
direct representation of these identifiers in ebugging data.
* ada-exp.y: Define 'true' and 'false' as primaries.
(type_boolean): New function.
(type_int,type_long,type_long_long,type_floattype_double)
(type_long_double): Remove uses of current_gdbarch for consistency
with type_boolean.
(write_int): Change comment to indicate that it might write boolean
constant as well.
* ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
type, since will no longer be represented as enumerated type in
debugging data.
* ada-valprint.c (print_optional_low_bound): Handle boolean case
as well.
gdb/ChangeLog
gdb/ada-exp.y
gdb/ada-lang.c
gdb/ada-lex.l
gdb/ada-typeprint.c
gdb/ada-valprint.c