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: Tue, 9 Dec 2003 15:33:14 -0800
Michael,
On Dec 8, 2003, at 2:49 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
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Jim Ingham
email@hidden
Developer Tools - gdb
_______________________________________________
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.