From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32031 invoked by alias); 8 Nov 2005 00:04:24 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 32024 invoked by uid 22791); 8 Nov 2005 00:04:21 -0000 Received: from bay105-f32.bay105.hotmail.com (HELO hotmail.com) (65.54.224.42) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 08 Nov 2005 00:04:21 +0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 7 Nov 2005 16:04:20 -0800 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Tue, 08 Nov 2005 00:04:20 GMT X-Sender: ikiwibebe@hotmail.com In-Reply-To: <20051103212218.GA11828@nevyn.them.org> From: "Sp3cial K" To: drow@false.org Cc: gdb@sources.redhat.com Bcc: Subject: Re: gdb cannot print object casted to a pointer of certain class Date: Tue, 08 Nov 2005 00:04:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-SW-Source: 2005-11/txt/msg00185.txt.bz2 I dont have the code with me right now. What I remember is that the class has a valid constructor, and it works fine if I add "class" in front of the name to force it to be read as a class. Do you think this is the frame or symbol table problem? >From: Daniel Jacobowitz >To: Sp3cial K >CC: gdb@sources.redhat.com >Subject: Re: gdb cannot print object casted to a pointer of certain class >Date: Thu, 3 Nov 2005 16:22:18 -0500 > >On Wed, Nov 02, 2005 at 07:04:45PM -0500, Sp3cial K wrote: > > Has anyone encountered a problem where ptype prints out the class info >in > > most frames, but it complaints "Type xxx has no component named xxx." in > > one frame? Ironically, the frame where it doesn't print out correctly >is > > in a function of that class! > >The more details you snip out of a bug report, the less likely it is >that we can help you. But I believe I know what this problem is: > > > Also, when I tried to print out an object casted to that class, as >follows: > > p *(xxx *)0x12345678 > > it complains: > > A parse error in expression, near `)0x12345678' > >The name is being interpreted differently in that scope, probably as >the constructor rather than the class. A testcase might let us fix >this. > >-- >Daniel Jacobowitz >CodeSourcery, LLC