public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "tromey at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug c++/14834] Crash while trying to read field
Date: Mon, 19 Nov 2012 20:19:00 -0000	[thread overview]
Message-ID: <bug-14834-4717-CpJ9uDiuWB@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-14834-4717@http.sourceware.org/bugzilla/>

http://sourceware.org/bugzilla/show_bug.cgi?id=14834

--- Comment #13 from Tom Tromey <tromey at redhat dot com> 2012-11-19 20:19:06 UTC ---
(In reply to comment #12)
> Created attachment 6746 [details]
> ptypes
> 
> Meanwhile i'm trying to dig from other side. 
> In findvar.c:176 have 
> (gdb)  p type->main_type->code
> $4 = TYPE_CODE_FLT
> 
> as it should be. The question why it treats to be pointer.

This code is trying to print the vtable pointer specially.
What is happening is that it is confused and thinks this field
is the vtable pointer.  What I'm trying to do is reconstruct
the failure here, hoping that with the right type hierarchy
I can recreate it locally.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


  parent reply	other threads:[~2012-11-19 20:19 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-12 21:30 [Bug c++/14834] New: " icegood1980 at gmail dot com
2012-11-12 21:38 ` [Bug c++/14834] " tromey at redhat dot com
2012-11-19 16:26 ` icegood1980 at gmail dot com
2012-11-19 16:53 ` tromey at redhat dot com
2012-11-19 17:19 ` icegood1980 at gmail dot com
2012-11-19 17:22 ` tromey at redhat dot com
2012-11-19 17:35 ` icegood1980 at gmail dot com
2012-11-19 17:44 ` tromey at redhat dot com
2012-11-19 18:15 ` icegood1980 at gmail dot com
2012-11-19 19:01 ` tromey at redhat dot com
2012-11-19 19:35 ` icegood1980 at gmail dot com
2012-11-19 19:49 ` tromey at redhat dot com
2012-11-19 20:13 ` icegood1980 at gmail dot com
2012-11-19 20:19 ` tromey at redhat dot com [this message]
2012-11-19 20:35 ` tromey at redhat dot com
2012-11-19 21:30 ` icegood1980 at gmail dot com
2012-11-19 21:51 ` tromey at redhat dot com
2012-11-20 12:26 ` icegood1980 at gmail dot com

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=bug-14834-4717-CpJ9uDiuWB@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /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).