From 34555c772c8bad8ef2f729b57a375f224cf0a45c Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Wed, 9 Jan 2008 04:28:11 +0000 Subject: [PATCH] * dwarf2read.c (read_enumeration_type): Add comment. --- gdb/ChangeLog | 4 ++++ gdb/dwarf2read.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index abf609c0a..4d62be790 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2008-01-08 Joel Brobecker + + * dwarf2read.c (read_enumeration_type): Add comment. + 2008-01-08 Thiago Jung Bauermann * config.in: Regenerate. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index f9dfff195..2cb65c75b 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; -- 2.11.4.GIT