From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30975 invoked by alias); 3 Nov 2005 00:04:51 -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 30958 invoked by uid 22791); 3 Nov 2005 00:04:47 -0000 Received: from bay105-f3.bay105.hotmail.com (HELO hotmail.com) (65.54.224.13) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 03 Nov 2005 00:04:47 +0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 2 Nov 2005 16:04:46 -0800 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Thu, 03 Nov 2005 00:04:45 GMT X-Sender: ikiwibebe@hotmail.com From: "Sp3cial K" To: gdb@sources.redhat.com Bcc: Subject: gdb cannot print object casted to a pointer of certain class Date: Thu, 03 Nov 2005 00:04:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-SW-Source: 2005-11/txt/msg00049.txt.bz2 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! 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' But if I switch to another frame, then it prints out fine... Any help will be greatly appreciated! Thanks, Special K