From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14714 invoked by alias); 27 Jul 2007 12:52:39 -0000 Received: (qmail 14700 invoked by uid 22791); 27 Jul 2007 12:52:38 -0000 X-Spam-Check-By: sourceware.org Received: from mms2.broadcom.com (HELO mms2.broadcom.com) (216.31.210.18) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 27 Jul 2007 12:52:36 +0000 Received: from [10.10.64.154] by mms2.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.3.1)); Fri, 27 Jul 2007 05:52:26 -0700 X-Server-Uuid: A6C4E0AE-A7F0-449F-BAE7-7FA0D737AC76 Received: by mail-irva-10.broadcom.com (Postfix, from userid 47) id 0D630470; Fri, 27 Jul 2007 05:52:26 -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 E7DE7467; Fri, 27 Jul 2007 05:52:25 -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 FMV63918; Fri, 27 Jul 2007 05:52:25 -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 8DF2369CA3; Fri, 27 Jul 2007 05:52:25 -0700 (PDT) Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: Segfault in varobj.c Date: Fri, 27 Jul 2007 13:07:00 -0000 Message-ID: In-Reply-To: <18089.57854.615639.287461@kahikatea.snap.net.nz> References: <18089.56395.938853.868975@kahikatea.snap.net.nz> <18089.57854.615639.287461@kahikatea.snap.net.nz> From: "Robert Norton" To: "Nick Roberts" cc: gdb@sourceware.org X-WSS-ID: 6AB735003DG14637242-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/msg00194.txt.bz2 > -----Original Message----- > From: Nick Roberts [mailto:nickrob@snap.net.nz]=20 > Sent: 27 July 2007 13:16 > To: Robert Norton > Cc: gdb@sourceware.org > Subject: RE: Segfault in varobj.c >=20 > > > This is your port of GDB and it's based on an old=20 > version of FSF GDB. > > > Does it happen with FSF GDB or, at least, your port=20 > based on up-to-date > > > FSF GDB? > >=20 > > The port is based on GDB 6.6. >=20 > By up-to-date I meant GDB in CVS. Presumably you could merge=20 > your changes to > that. It may be that the problem has already been solved or=20 > no longer exists > in the repository. Ah yes, I see there are quite a lot of changes to the varobjs file. In particular the warning is no longer present. Unfortunately we're not really in a position to upgrade to fix such a trivial bug, but due to my analysis below I think the bug might still occur: Breakpointing in c_type_of_child (now c_describe_child) we end up in the default case of the switch because the parent has type code TYPE_CODE_TYPEDEF, so could it be that the switch requires another case to handle this situation? I'll see if I can come up with a minimal test binary based on this. Thanks, 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