From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4920 invoked by alias); 27 Jul 2007 14:30:08 -0000 Received: (qmail 4904 invoked by uid 22791); 27 Jul 2007 14:30:07 -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; Fri, 27 Jul 2007 14:30:03 +0000 Received: from [10.10.64.154] by mms1.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.3.1)); Fri, 27 Jul 2007 07:29:51 -0700 X-Server-Uuid: 6B5CFB92-F616-4477-B110-55F967A57302 Received: by mail-irva-10.broadcom.com (Postfix, from userid 47) id 3A9B92AF; Fri, 27 Jul 2007 07:29:51 -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 26F392AE for ; Fri, 27 Jul 2007 07:29:51 -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 FMV75166; Fri, 27 Jul 2007 07:29:51 -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 DFA2A69CA4 for ; Fri, 27 Jul 2007 07:29:50 -0700 (PDT) Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: FW: Segfault in varobj.c Date: Fri, 27 Jul 2007 17:53:00 -0000 Message-ID: From: "Robert Norton" To: gdb@sourceware.org X-WSS-ID: 6AB4DED51S811846600-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/msg00196.txt.bz2 > ----Original Message----- > From: Daniel Jacobowitz [mailto:drow@false.org]=20 > Sent: 27 July 2007 15:25 > To: Robert Norton > Subject: Re: Segfault in varobj.c >=20 > On Fri, Jul 27, 2007 at 07:20:50AM -0700, Robert Norton wrote: > > Ah. Thanks. There doesn't seem to be any equivalent=20 > function in the 6.6 > > version. Can you remember how this would have been handled then? >=20 > Badly, I'm afraid. Vladimir and Nick did a lot of work cleaning this > stuff up after 6.6. OK, thanks. The below was supposed to go the mailing list but I think my question is largely answered. Here it is for the record: > No, that won't happen any more. See get_value_type. Ah. Thanks. There doesn't seem to be any equivalent function in the 6.6 version. Can you remember how this would have been handled then? Appreciate that you're probably not interested in dredging up the past. I tried variations on the following code but still wasn't able to reproduce in 6.6 so there must be something more to my test binary: typedef int * INT_PTR; struct test_struct { INT_PTR x; }; struct test_struct test; int main(void) { int x =3D 1; test.x =3D &x; return *test.x; } rnorton@x-cbga-09:rnorton> gdb --interpreter=3Dmi gdbtestfp ... ^done,reason=3D"breakpoint-hit",bkptno=3D"1",thread-id=3D"0",frame=3D{addr= =3D"0x00 000140",func=3D"main",args=3D[],file=3D"gdbtest.c",line=3D"10"} (gdb) -var-create - * test ^done,name=3D"var1",numchild=3D"1",type=3D"struct test_struct" (gdb) -var-list-children test &"Variable object not found\n" ^error,msg=3D"Variable object not found" (gdb) -var-list-children var1 ^done,numchild=3D"1",children=3D{child=3D{name=3D"var1.x",exp=3D"x",numchil= d=3D"1",t ype=3D"INT_PTR"}} (gdb) -var-list-children var1.x ^done,numchild=3D"1",children=3D{child=3D{name=3D"var1.x.*x",exp=3D"*x",num= child=3D" 0",type=3D"int"}} (gdb) -var-list-children var1.x.*x ^done,numchild=3D"0" (gdb) Suppose I'll just have to go with a workaround until such time as we can upgrade.=20 Thanks, Robert > --=20 > Daniel Jacobowitz > CodeSourcery >=20 >=20