This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14834] Crash while trying to read field


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]