From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18738 invoked by alias); 3 Nov 2005 21:22:25 -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 18726 invoked by uid 22791); 3 Nov 2005 21:22:20 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 03 Nov 2005 21:22:20 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EXmXK-00035Q-I3; Thu, 03 Nov 2005 16:22:18 -0500 Date: Thu, 03 Nov 2005 21:22:00 -0000 From: Daniel Jacobowitz To: Sp3cial K Cc: gdb@sources.redhat.com Subject: Re: gdb cannot print object casted to a pointer of certain class Message-ID: <20051103212218.GA11828@nevyn.them.org> Mail-Followup-To: Sp3cial K , gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-SW-Source: 2005-11/txt/msg00076.txt.bz2 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