From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7510 invoked by alias); 30 Jul 2007 09:32:54 -0000 Received: (qmail 7502 invoked by uid 22791); 30 Jul 2007 09:32:54 -0000 X-Spam-Check-By: sourceware.org Received: from mms1.broadcom.com (HELO mms1.broadcom.com) (216.31.210.17) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 30 Jul 2007 09:32:51 +0000 Received: from [10.10.64.154] by mms1.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.3.1)); Mon, 30 Jul 2007 02:32:35 -0700 X-Server-Uuid: 6B5CFB92-F616-4477-B110-55F967A57302 Received: by mail-irva-10.broadcom.com (Postfix, from userid 47) id E59B92B0; Mon, 30 Jul 2007 02:32:34 -0700 (PDT) Received: from mail-irva-8.broadcom.com (mail-irva-8 [10.10.64.221]) by mail-irva-10.broadcom.com (Postfix) with ESMTP id CB93C2AE; Mon, 30 Jul 2007 02:32:34 -0700 (PDT) Received: from mail-irva-12.broadcom.com (mail-irva-12.broadcom.com [10.10.64.146]) by mail-irva-8.broadcom.com (MOS 3.7.5a-GA) with ESMTP id FNA49084; Mon, 30 Jul 2007 02:32:34 -0700 (PDT) Received: from NT-IRVA-0752.brcm.ad.broadcom.com ( nt-irva-0752.brcm.ad.broadcom.com [10.8.194.67]) by mail-irva-12.broadcom.com (Postfix) with ESMTP id 3667169CA3; Mon, 30 Jul 2007 02:32:34 -0700 (PDT) Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: FW: Segfault in varobj.c Date: Mon, 30 Jul 2007 11:43:00 -0000 Message-ID: In-Reply-To: <18090.40609.505683.775495@kahikatea.snap.net.nz> References: <18090.40609.505683.775495@kahikatea.snap.net.nz> From: "Robert Norton" To: "Nick Roberts" cc: gdb@sourceware.org X-WSS-ID: 6AB36FB91S813250628-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-07/txt/msg00208.txt.bz2 =20 > -----Original Message----- > From: Nick Roberts [mailto:nickrob@snap.net.nz]=20 > Sent: 28 July 2007 02:41 > To: Robert Norton > Cc: gdb@sourceware.org > Subject: Re: FW: Segfault in varobj.c >=20 > Your example crashes with GDB 6.6 for me in the way you first=20 > reported. =20 Interesting! I think I needed an array of teststructs in the end. Another one for the test suite? > > Suppose I'll just have to go with a workaround until such=20 > time as we can > > upgrade.=20 >=20 > Yes. It appears to be fixed in current CVS but isn't handled=20 > by GDB 6.6. OK. I managed to avoid the segfault by backporting get_value_type and changing the line switch (TYPE_CODE (parent->type)) In c_type_of_child to=20 switch (TYPE_CODE (get_value_type(parent))) This is still not right since the pointer fields which previously caused a crash can now be expanded twice in eclipse. It seems gdb gets the type of the child of the pointer wrong (it thinks it is still a pointer) and allows it to be expanded again, but at least it doesn't crash! Thanks for your assistance, Robert > --=20 > Nick=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 > http://www.inet.net.nz/~nickrob >=20 >=20