From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 780 invoked by alias); 8 Aug 2005 20:57:14 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 561 invoked by uid 22791); 8 Aug 2005 20:57:05 -0000 Received: from mail-out3.apple.com (HELO mail-out3.apple.com) (17.254.13.22) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 08 Aug 2005 20:57:05 +0000 Received: from mailgate1.apple.com (a17-128-100-225.apple.com [17.128.100.225]) by mail-out3.apple.com (8.12.11/8.12.11) with ESMTP id j78KutIG015185 for ; Mon, 8 Aug 2005 13:56:55 -0700 (PDT) Received: from relay4.apple.com (relay4.apple.com) by mailgate1.apple.com (Content Technologies SMTPRS 4.3.17) with ESMTP id ; Mon, 8 Aug 2005 13:49:12 -0700 Received: from [17.201.22.21] (moleja.apple.com [17.201.22.21]) by relay4.apple.com (8.12.11/8.12.11) with ESMTP id j78Kn9OF000646; Mon, 8 Aug 2005 13:49:10 -0700 (PDT) In-Reply-To: <200508081712.j78HCUYa032711@apollo.sr.unh.edu> References: <200508081712.j78HCUYa032711@apollo.sr.unh.edu> Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <7EBC099A-8CF1-402C-85CA-14105A9C8131@apple.com> Cc: gdb@sources.redhat.com Content-Transfer-Encoding: 7bit From: Jason Molenda Subject: Re: force scanning of includes? Date: Mon, 08 Aug 2005 20:57:00 -0000 To: tfogal@apollo.sr.unh.edu X-SW-Source: 2005-08/txt/msg00039.txt.bz2 On Aug 8, 2005, at 10:12 AM, tom fogal wrote: > When I try to print an instance of an object from the library, gdb > thinks it is a struct: > > #10 0x000000000040825c in main (argc=1, argv=0x7fffffffe748) at > test.cxx:60 > 60 Renderer->Delete(); > (gdb) print Renderer > $1 = (struct vtkRenderer *) 0x52d5b0 > (gdb) print *Renderer > $2 = gdb doesn't know what a vtkRenderer is. This class is probably defined in vtkRenderer.h. Is the definition actually included there? If so, then either your debug info is incomplete/incorrect, or gdb is failing in reading it. > I've tried compiling my test.cxx program with '-g' and later '- > gdwarf-2 > -g3' after reading through some archives. -gdwarf-2 is enough. It looks like you're on a 64-bit host -- best off not messing with anything but DWARF 2. I don't know of any problems like this with DWARF debug info, but I'm not too familiar with non-MacOS systems these days. If you'd like to pursue this problem further, start by running readelf -wi on your application and looking for the definition of vtkRenderer. Jason