binutils-gdb/gdb/testsuite
Joel Brobecker 720d1a4025 [Ada] do not print arrays as array pointers
This patch enhances the debugger to distinguish between fat pointers
that represent either: array types, or array access types.  In the latter
case, the object/type is encoded as a typedef type pointing to the fat
pointer.

The first part of the change is to adjust ada_check_typedef to avoid
stripping the typedef layer when it points to a fat pointer.  The rest
of the patch is adjustments required in various places to deal with
the fact that the type is uses might now be a typedef.

gdb/ChangeLog:

        * ada-lang.h (ada_coerce_to_simple_array): Add declaration.
        * ada-lang.c (ada_typedef_target_type): New function.
        (desc_base_type): Add handling of fat pointer typedefs.
        (ada_coerce_to_simple_array): Make non-static.
        (decode_packed_array_bitsize): Add handling of fat pointer typedefs.
        Add assertion.
        (ada_template_to_fixed_record_type_1, ada_to_fixed_type)
        (ada_check_typedef): Add handling of fat pointer typedefs.
        (ada_evaluate_subexp) [OP_FUNCALL]: Likewise.
        * ada-typeprint.c (ada_print_type): Add handling of fat pointer
        typedefs.
        * ada-valprint.c (ada_val_print_1): Convert fat pointers that are not
        array accesses to simple arrays rather than simple array pointers.
        (ada_value_print): In the case of array descriptors, do not print
        the value type description unless it is an array access.

gdb/testsuite/ChangeLog:

        * gdb.ada/lang_switch.exp: Correct expected parameter value.

gdb/doc/ChangeLog:

        * gdb.texinfo (Ada Glitches): Remove paragraph describing the
        occasional case where the debugger prints an array address
        instead of the array itself.
2010-12-29 08:01:32 +00:00
..
config
gdb.ada [Ada] do not print arrays as array pointers 2010-12-29 08:01:32 +00:00
gdb.arch 2010-12-23 Yao Qi <yao@codesourcery.com> 2010-12-23 15:10:24 +00:00
gdb.asm 2010-11-24 Edjunior Machado <emachado@br.ibm.com> 2010-11-24 18:06:18 +00:00
gdb.base gdb 2010-12-09 19:23:49 +00:00
gdb.cell
gdb.cp gdb 2010-12-15 21:19:50 +00:00
gdb.disasm
gdb.dwarf2 gdb 2010-11-29 21:18:16 +00:00
gdb.fortran
gdb.gdb
gdb.hp
gdb.java gdb 2010-12-09 16:09:54 +00:00
gdb.mi
gdb.modula2
gdb.multi
gdb.objc
gdb.opencl gdb: 2010-11-05 14:31:30 +00:00
gdb.opt
gdb.pascal
gdb.python PR python/12227 2010-12-07 17:26:06 +00:00
gdb.reverse
gdb.server * lib/gdb.exp (gdb_test_sequence): New function. 2010-11-23 22:25:37 +00:00
gdb.stabs gdb/testsuite/ 2010-11-12 21:49:55 +00:00
gdb.threads * gdb.threads/tls.exp: Fix typo. 2010-12-25 19:22:39 +00:00
gdb.trace 2010-12-12 Stan Shebs <stan@codesourcery.com> 2010-12-13 05:29:32 +00:00
gdb.xml
lib PR python/12227 2010-12-07 17:26:06 +00:00
.gdbinit
aclocal.m4
ChangeLog [Ada] do not print arrays as array pointers 2010-12-29 08:01:32 +00:00
configure gdb: 2010-11-05 14:31:30 +00:00
configure.ac gdb: 2010-11-05 14:31:30 +00:00
dg-extract-results.sh
Makefile.in gdb: 2010-11-05 14:31:30 +00:00
TODO