diff -r 82a37ccf6b8c -r a910102a1c9d ExceptionUtils.h --- a/ExceptionUtils.h Tue May 20 17:40:28 2008 -0700 +++ b/ExceptionUtils.h Tue Apr 07 11:13:25 2009 -0700 @@ -7,15 +7,17 @@ // See BSD license at bottom of ExceptionUtils.m. // -#import +#import +#ifdef NSAppKitVersionNumber10_4 // only enable this in a project that uses AppKit /** Edit your Info.plist to make this your app's principal class, and most exceptions will be reported via a modal alert. This includes exceptions caught by AppKit (i.e. uncaught ones from event handlers) and ones you report yourself via MYReportException and @catchAndReport. */ @interface MYExceptionReportingApplication : NSApplication @end +#endif /** A useful macro to use in code where you absolutely cannot allow an exception to @@ -39,3 +41,6 @@ /** Returns a textual, human-readable backtrace of the point where the exception was thrown. */ - (NSString*) my_callStack; @end + + +BOOL IsGDBAttached( void );