public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: "Sp3cial K" <ikiwibebe@hotmail.com>
To: gdb@sources.redhat.com
Subject: gdb cannot print object casted to a pointer of certain class
Date: Thu, 03 Nov 2005 00:04:00 -0000	[thread overview]
Message-ID: <BAY105-F3EBE8A17823677C4B43F4BA610@phx.gbl> (raw)

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


             reply	other threads:[~2005-11-03  0:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-03  0:04 Sp3cial K [this message]
2005-11-03 21:22 ` Daniel Jacobowitz
2005-11-08  0:04   ` Sp3cial K

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=BAY105-F3EBE8A17823677C4B43F4BA610@phx.gbl \
    --to=ikiwibebe@hotmail.com \
    --cc=gdb@sources.redhat.com \
    /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).