From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28194 invoked by alias); 8 Aug 2005 17:12:43 -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 28132 invoked by uid 22791); 8 Aug 2005 17:12:32 -0000 Received: from apollo.sr.unh.edu (HELO apollo.sr.unh.edu) (132.177.249.110) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 08 Aug 2005 17:12:32 +0000 Received: from apollo.sr.unh.edu (apollo [127.0.0.1]) by apollo.sr.unh.edu (8.12.8/8.12.8) with ESMTP id j78HCUkO032715 for ; Mon, 8 Aug 2005 13:12:30 -0400 Received: from apollo (tfogal@localhost) by apollo.sr.unh.edu (8.12.8/8.12.8/Submit) with ESMTP id j78HCUYa032711 for ; Mon, 8 Aug 2005 13:12:30 -0400 Message-Id: <200508081712.j78HCUYa032711@apollo.sr.unh.edu> Reply-To: tfogal@apollo.sr.unh.edu From: tom fogal To: gdb@sources.redhat.com Subject: force scanning of includes? Date: Mon, 08 Aug 2005 17:12:00 -0000 X-SW-Source: 2005-08/txt/msg00038.txt.bz2 This is probably in the docs somewhere, but my greps are coming up empty. sorry. I'm trying to debug a C++ program, and gdb doesn't seem to know about objects defined in a library. The library is built with -g and installed in /usr/local/lib/vtk, which is listed in /etc/ld.so.conf. The headers are in /usr/local/include/vtk. 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 = How can I tell gdb to scan /usr/local/include/vtk/vtkRenderer.h, so it will know what a vtkRenderer is? The 'directories' command doesn't seem to be much use here. I've tried compiling my test.cxx program with '-g' and later '-gdwarf-2 -g3' after reading through some archives. Thanks, -tom