• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: gdb can't find class info
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gdb can't find class info


  • Subject: Re: gdb can't find class info
  • From: Michael Taylor <email@hidden>
  • Date: Wed, 10 Dec 2003 03:00:34 +0100

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.

  • Follow-Ups:
    • Re: gdb can't find class info
      • From: Jim Ingham <email@hidden>
References: 
 >gdb can't find class info (From: Michael Taylor <email@hidden>)
 >Re: gdb can't find class info (From: Jim Ingham <email@hidden>)

  • Prev by Date: Re: gdb can't find class info
  • Next by Date: Cannot Debug with XCode
  • Previous by thread: Re: gdb can't find class info
  • Next by thread: Re: gdb can't find class info
  • Index(es):
    • Date
    • Thread