From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31537 invoked by alias); 5 Jan 2008 12:33:32 -0000 Received: (qmail 31529 invoked by uid 22791); 5 Jan 2008 12:33:31 -0000 X-Spam-Check-By: sourceware.org Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (213.8.233.22) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 05 Jan 2008 12:33:12 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-71-78.inter.net.il [80.230.71.78]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id ITI92836 (AUTH halo1); Sat, 5 Jan 2008 14:30:38 +0200 (IST) Date: Sat, 05 Jan 2008 12:33:00 -0000 Message-Id: From: Eli Zaretskii To: Joel Brobecker CC: gdb-patches@sourceware.org In-reply-to: <20080103154055.GD582@adacore.com> (message from Joel Brobecker on Thu, 3 Jan 2008 07:40:55 -0800) Subject: Re: [RFA/DWARF] Set TYPE_FLAG_STUB for enum DIEs that are declarations only Reply-to: Eli Zaretskii References: <20080103153952.GC582@adacore.com> <20080103154055.GD582@adacore.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00074.txt.bz2 > Date: Thu, 3 Jan 2008 07:40:55 -0800 > From: Joel Brobecker > > --- dwarf2read.c (revision 59) > +++ dwarf2read.c (revision 60) > @@ -4237,6 +4237,9 @@ read_enumeration_type (struct die_info * > TYPE_LENGTH (type) = 0; > } > > + if (die_is_declaration (die, cu)) > + TYPE_FLAGS (type) |= TYPE_FLAG_STUB; > + I'd suggest a comment here to explain why we do this.