diff options
author | Joel Brobecker <brobecker@gnat.com> | 2011-04-01 17:03:24 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2011-04-01 17:03:24 +0000 |
commit | b0dd768854fdf8ca67141da5483119a16f1f0ef7 (patch) | |
tree | 5ae1b9a9f93eb0700a18621a8148f237c70c65bd /gdb/gdb_string.h | |
parent | 956a9fb9fb6573a18dca4726f8c2ae083bc4a508 (diff) | |
download | gdb-b0dd768854fdf8ca67141da5483119a16f1f0ef7.zip gdb-b0dd768854fdf8ca67141da5483119a16f1f0ef7.tar.gz gdb-b0dd768854fdf8ca67141da5483119a16f1f0ef7.tar.bz2 |
[Ada] fix printing slice of array defined as typedef
A change we are making in the compiler to help preserve useful
types when using -feliminate-unused-debug-types exposed a small
hole in our value-printing code.
One example of the problem happens when trying to print a slice
of an array pointer. If the variable is defined as a pointer to
the typedef of an array, then we fail to print the slice, like so:
(gdb) p arr_ptr(1..2)
cannot take slice of non-array
gdb/ChangeLog:
* ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
(ada_value_slice, empty_array, to_fixed_array_type): Deal with
typedefs.
Diffstat (limited to 'gdb/gdb_string.h')
0 files changed, 0 insertions, 0 deletions