Re: gdb can't find class info
Re: gdb can't find class info
- Subject: Re: gdb can't find class info
- From: Jim Ingham <email@hidden>
- Date: Wed, 10 Dec 2003 10:51:36 -0800
Michael,
If you can file a bug on this, that would be great! The principle at
Apple is that all source code attachments to Bug Reports are
confidential within Apple. However, to make sure that nobody
accidentally runs across the code in Radar, the DTS folks suggest
putting the code in an encrypted disk image, attaching that, and then
sending the password to me by e-mail.
Thanks,
Jim
On Dec 9, 2003, at 6:00 PM, Michael Taylor wrote:
I'm just starting with Xcode, and trying to debug a C++ command
line program.
When I try and look at the value of some of my class variable I get
a load of messages from gdb along the lines of:
warning: can't find class named `lys::glasgowDevice', as given by
C++ RTTI
This is coming - as you guessed - because the class is defined in a
Namespace. The problem is that the RTTI has namespace info in it,
but the debug info doesn't actually record namespace info. Instead
of guessing, we just don't use the RTTI info if it doesn't match the
debug info exactly.
But this warning is not fatal. Normally we try to cast the object to
its dynamic type if we can find it. However, if we can't (this is
one example where we are failing to find it) we will present the
static type of the object. That's not as good as getting the full
type, but that's all that should happen...
and then gdb crashes for some classes, others not.
For instance, it should not cause crashes. If you are seeing
crashes, please file bugs, preferably with a sample of code that
shows the problem, and instructions on how to reproduce the issue...
Thanks Jim
I can certainly reproduce the crash, I'll see how much code I need to
keep to do that though. Interestingly, I can print the class directly
within gdb without problems, just examining it in the graphical
debugger in Xcode causes the crash.
Would I be right to assume code posted in a bug report would be
confidential within Apple?
michael
--
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
--
Jim Ingham email@hidden
Developer Tools
Apple Computer
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.