old-cross-binutils/gdb/testsuite
Joel Brobecker 2e6fda7d06 [Ada] whatis not printing array type name for value from history
Consider the following declaration:

   type Full_Table is array (Color) of Integer;
   Full : Full_Table := (144, 233, 377, 610, 987);

The debugger correctly prints the type name of variable "full":

        (gdb) whatis full
        type = pck.full_table

But is unable to do so when using the value history:

        (gdb) print full
        $1 = (144, 233, 377, 610, 987)
        (gdb) whatis $
 !!! -> type = array (black .. white) of integer

This is because the evaluation creates a "fixed" version of
the array type, and that "fixed" version is missing a type name.
As a result, whatis falls back to describing the type (a la ptype)
instead of printing the type name.

gdb/ChangeLog:

        * ada-lang.c (to_fixed_array_type): Set result's type name.

gdb/testsuite/ChangeLog:

        * gdb.ada/whatis_array_val: New testcase.
2012-02-29 19:29:12 +00:00
..
boards 2012-01-27 Pedro Alves <palves@redhat.com> 2012-01-27 13:02:22 +00:00
config 2012-01-27 Pedro Alves <palves@redhat.com> 2012-01-27 13:02:22 +00:00
gdb.ada [Ada] whatis not printing array type name for value from history 2012-02-29 19:29:12 +00:00
gdb.arch 2012-02-21 Pedro Alves <palves@redhat.com> 2012-02-21 22:01:10 +00:00
gdb.asm 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
gdb.base gdb/ 2012-02-29 14:59:41 +00:00
gdb.cell Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
gdb.cp * gdb.cp/breakpoint.exp (test_breakpoint): Fix the runto_main 2012-02-27 20:48:25 +00:00
gdb.disasm 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
gdb.dwarf2 2012-02-21 Pedro Alves <palves@redhat.com> 2012-02-21 22:01:10 +00:00
gdb.fortran 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
gdb.gdb 2012-02-02 Pedro Alves <palves@redhat.com> 2012-02-02 18:09:07 +00:00
gdb.hp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
gdb.java 2012-01-19 Pedro Alves <palves@redhat.com> 2012-01-19 12:37:28 +00:00
gdb.linespec gdb 2012-01-16 20:40:53 +00:00
gdb.mi 2012-02-21 Pedro Alves <palves@redhat.com> 2012-02-21 22:01:10 +00:00
gdb.modula2 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
gdb.multi 2012-01-26 Pedro Alves <palves@redhat.com> 2012-01-26 10:09:43 +00:00
gdb.objc 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
gdb.opencl 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
gdb.opt 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
gdb.pascal 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
gdb.python PR python/12070: 2012-02-17 19:24:27 +00:00
gdb.reverse gdb/testsuite/ 2012-02-29 14:55:46 +00:00
gdb.server 2012-02-15 Pedro Alves <palves@redhat.com> 2012-02-15 12:51:17 +00:00
gdb.stabs 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
gdb.threads 2012-02-24 Pedro Alves <palves@redhat.com> 2012-02-24 14:06:29 +00:00
gdb.trace gdb/gdbserver: 2012-02-29 13:59:41 +00:00
gdb.xml Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
lib 2012-02-21 Pedro Alves <palves@redhat.com> 2012-02-21 22:01:10 +00:00
aclocal.m4
ChangeLog [Ada] whatis not printing array type name for value from history 2012-02-29 19:29:12 +00:00
configure the "ambiguous linespec" series 2011-12-06 18:54:43 +00:00
configure.ac Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
dg-extract-results.sh Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
Makefile.in Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
TODO