aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-01-09 04:28:11 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-01-09 04:28:11 +0000
commit137033e97482d340139b1499c6db4236f35c8577 (patch)
tree76416c281906a7f97579924fc558240c5fdccee4 /gdb/dwarf2read.c
parent50e8458f68f42c3f46ef5ea265a1162ab9fb7648 (diff)
downloadgdb-137033e97482d340139b1499c6db4236f35c8577.zip
gdb-137033e97482d340139b1499c6db4236f35c8577.tar.gz
gdb-137033e97482d340139b1499c6db4236f35c8577.tar.bz2
* dwarf2read.c (read_enumeration_type): Add comment.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index f9dfff1..2cb65c7 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -4233,6 +4233,11 @@ read_enumeration_type (struct die_info *die, struct dwarf2_cu *cu)
TYPE_LENGTH (type) = 0;
}
+ /* The enumeration DIE can be incomplete. In Ada, any type can be
+ declared as private in the package spec, and then defined only
+ inside the package body. Such types are known as Taft Amendment
+ Types. When another package uses such a type, an incomplete DIE
+ may be generated by the compiler. */
if (die_is_declaration (die, cu))
TYPE_FLAGS (type) |= TYPE_FLAG_STUB;