| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
_______________________________________________From: Chris Ridd <email@hidden>
If you try compiling using gcc -v compilerbreaker.c, you will see theexactcommandlines that the gcc driver is using to execute cc1obj. Presumablyifyou run cc1obj yourself using the identical args, you'll get a nice core
dump...
Nice try. Unfortunately the compiler driver first gets the pre-compiler
to produce a temporary file and then invokes cc1obj to process it. After
the crash it cleans up! So you cannot try again.
It has been suggested that I could replace cc1obj with a wrapper script
that invokes it under gdb and trap the crash like that. I will give it a
try.
I say presumably, because trying to use -fgnu-runtime with anObjective-Cprogram as you described does not crash for me.
Try
#include <objc/Object.h>
@interface FooBar: Object
- (void)boo;
@end
int main ()
{
id fooBarInst = [[FooBar alloc] init];
[fooBarInst boo];
return 0;
}
That crashes every time for me with the Apple compiler but not the FSF
version.
Bill Northcott
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.