Joel Brobecker
aa4fb036e9
Wrong type for 'Length result.
...
Consider the following code:
type Color is (Black, Red, Green, Blue, White);
type Primary_Table is array (Color range Red .. Blue) of Boolean;
Prim : Primary_Table := (True, False, False);
GDB prints the length of arrays in a fairly odd way:
(gdb) p prim'length
$2 = blue
The length returned should be an integer, not the array index type,
and this patch fixes this.
gdb/ChangeLog:
* ada-lang.c (ada_evaluate_subexp): Set the type of the value
returned by the 'Length attribute to integer.
testsuite/ChangeLog:
* gdb.ada/tick_length_array_enum_idx: New testcase.
2014-02-10 13:15:43 +04:00
..
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-27 08:27:21 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-07 08:29:04 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-07 08:17:40 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-02-10 13:15:43 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-27 08:27:21 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-07 08:29:04 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-10 07:57:11 +04:00
2014-01-07 08:17:40 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-02-10 13:15:43 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00
2014-01-01 07:54:24 +04:00