• 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: 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.

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

  • Prev by Date: Re: Meaning of "Pre-compiled symbol file "AppKit.syms" is out of date"?
  • Next by Date: Re: gdb can't find class info
  • Previous by thread: gdb can't find class info
  • Next by thread: Re: gdb can't find class info
  • Index(es):
    • Date
    • Thread