• 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 error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GDB error


  • Subject: Re: GDB error
  • From: Jim Ingham <email@hidden>
  • Date: Tue, 1 Feb 2005 11:26:20 -0800

This code is there to handle the case where you have a type that is defined in the header files included in one shared library, but is given just a stub or opaque def'n in another shared library. For instance, your private headers might actually define a "struct foo" with all it's fields, etc, but in your public header you just have:

struct foo;

Then any other library that uses the public header, knows there is a struct of this name, but doesn't know how to print it.

Since we have a real def'n around we would like to use that for you, but we want to make sure we don't just pollute one header namespace with types of the same name from another, thus these checks.

I can't really guess what is going wrong in this particular case without more details. One thing you can do is to get the XCGDB log, and that will tell you what we were trying to print at the time we fell over. Do that by:

1) Quit Xcode.
2) In Terminal, say:

$ defaults write com.apple.Xcode PBXGDBDebuggerLogToFile YES
$ defaults write com.apple.Xcode PBXGDBDebuggerLogFileName /tmp/IncludeInBug.log


3) Restart Xcode, and do whatever you need to to make it fail.

If you can file a bug with at least this log, and even better the project that is making this fail, I can probably figure out what is going on.

Jim


On Feb 1, 2005, at 9:15 AM, Olivier Tristan wrote:

Hi Guys,
I try to debug my program, and I got an error from GDB.
I was able to debug this program some time ago but since few weeks I can't.
Here is the GDB error:
/SourceCache/gdb/gdb-330.1/src/gdb/gdbtypes.c:531: internal-error:
make_cv_type: Assertion `TYPE_OBJFILE (*typeptr) == TYPE_OBJFILE
(type) || (TYPE_STUB (*typeptr) || TYPE_IS_OPAQUE (*typeptr))' failed.
A problem internal to GDB has been detected. Further
debugging may prove unreliable.
Any idea ?
Thanks,
--
Olivier Tristan
Ultimate Sound Bank
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >GDB error (From: Olivier Tristan <email@hidden>)

  • Prev by Date: Re: Problem Debugging GNU Make Projects
  • Next by Date: Count lines of code
  • Previous by thread: GDB error
  • Next by thread: Re: GDB error
  • Index(es):
    • Date
    • Thread