Do not consider reference types as dynamic
authorPierre-Marie de Rodat <derodat@adacore.com>
Fri, 3 Apr 2015 08:40:52 +0000 (10:40 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 3 Apr 2015 13:23:49 +0000 (15:23 +0200)
commit961f41602529c9cd4f88af6c02fb61fb55100e27
treeab5bd15848547f9a17611ed90c7b7a43b9ecfcff
parentcbf0179287a799be27e278a41f7705d4c20d9f11
Do not consider reference types as dynamic

Even when referenced types are dynamic, the corresponding referencing
type should not be considered as dynamic: it's only a pointer.  This
prevents reference type for values not in memory to be resolved.

gdb/ChangeLog:

* gdbtypes.c (is_dynamic_type_internal): Remove special handling
of TYPE_CODE_REF types so that they are not considered as
dynamic depending on the referenced type.
(resolve_dynamic_type_internal): Likewise.

gdb/testsuite/ChangeLog:

* gdb.ada/funcall_ref.exp: New file.
* gdb.ada/funcall_ref/foo.adb: New file.
gdb/ChangeLog
gdb/gdbtypes.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/funcall_ref.exp [new file with mode: 0644]
gdb/testsuite/gdb.ada/funcall_ref/foo.adb [new file with mode: 0644]