From: Jason Molenda <jmolenda@apple.com>
To: tfogal@apollo.sr.unh.edu
Cc: gdb@sources.redhat.com
Subject: Re: force scanning of includes?
Date: Mon, 08 Aug 2005 20:57:00 -0000 [thread overview]
Message-ID: <7EBC099A-8CF1-402C-85CA-14105A9C8131@apple.com> (raw)
In-Reply-To: <200508081712.j78HCUYa032711@apollo.sr.unh.edu>
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 = <incomplete type>
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
prev parent reply other threads:[~2005-08-08 20:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-08 17:12 tom fogal
2005-08-08 20:57 ` Jason Molenda [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7EBC099A-8CF1-402C-85CA-14105A9C8131@apple.com \
--to=jmolenda@apple.com \
--cc=gdb@sources.redhat.com \
--cc=tfogal@apollo.sr.unh.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).