missing type description for typedef to pointer value
authorJoel Brobecker <brobecker@gnat.com>
Fri, 1 Jul 2011 18:26:22 +0000 (18:26 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Fri, 1 Jul 2011 18:26:22 +0000 (18:26 +0000)
commitf5aa6869dee6874a9d1a3a386b1d5893f0ac46d4
tree0098e3bc7f01558d16d658f54cf62df7416462b9
parent8f465ea731ea6181bdbc86b36dc2df0b9b1f8520
missing type description for typedef to pointer value

If we evaluate an expression that results in a value that is a typedef
to pointer, then the debugger fails to print the type description
before printing the actual value:

    (gdb) print e.plan(1)
    $1 = 0x0

The expected output is:

    (gdb) print e.plan(1)
    $1 = (access integer) 0x0

gdb/ChangeLog:

        * ada-valprint.c (ada_value_print): Handle typedefs.

gdb/testsuite/ChangeLog:

        * gdb.ada/ptr_typedef: New testcase.
gdb/ChangeLog
gdb/ada-valprint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/ptr_typedef.exp [new file with mode: 0644]
gdb/testsuite/gdb.ada/ptr_typedef/foo.adb [new file with mode: 0644]
gdb/testsuite/gdb.ada/ptr_typedef/pck.adb [new file with mode: 0644]
gdb/testsuite/gdb.ada/ptr_typedef/pck.ads [new file with mode: 0644]