Re: GDB error
Re: GDB error
- Subject: Re: GDB error
- From: Jim Ingham <email@hidden>
- Date: Thu, 3 Feb 2005 18:28:31 -0800
Just to close the loop on this in case anybody else trips over the same
problem. Turns out that Sebastien was using dead-code stripping in the
Xcode 1.5 release. There was a bug in the linker in that release that
would really mangle the debug information if code that was
dead-stripped happened to be in the wrong place in your source files.
There is a November 2004 GCC update on the ADC site that fixes this
bug. So if you want to play with dead-code stripping, get that GCC
update before you do.
Thanks to Sebastien for helping me identify the problem.
Jim
On Feb 3, 2005, at 9:23 AM, Sebastien Metrot wrote:
Hi Jim,
I work with Olivier and I experience the same problem so I filed a bug
(Bug ID# *3989200
<https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/4/wo/
2KN2M21tUX1ABgstxXm9tg/16.27>) with all requested infos and log from
GDB. I hope you'll be able to fix that one :).
Thanks a lot,
Sebastien
--
Lead Dev.
http://www.usbsounds.com
*
Jim Ingham wrote:
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:
40apple.com
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
_______________________________________________
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>) |
| >Re: GDB error (From: Jim Ingham <email@hidden>) |