discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNUstep stack trace & gnustep-base.dll path


From: Richard Frith-Macdonald
Subject: Re: GNUstep stack trace & gnustep-base.dll path
Date: Thu, 4 May 2006 08:42:13 +0100


On 4 May 2006, at 07:57, Lloyd Dupont wrote:

I confused myself.
There was a bug.
Here is the corrected version which read both current process and gnustep-base.dll symbols.
And display your stack trace.

I would dearly like to see stacktrace capability contributed to the base library (I guess in NSDebug.m or NSException.m)

Problem is I would like to replace 'gnustep-base.dll' by a more multiplatform constant / invocation. One that could read 'gnustep-base.dll' on windows and 'gnustep- base.dylib' on MacOSX for example...

Any tips?

There is objc_get_symbol_path() ... which is used in NSBundle.m and NSPathUtilities.m to get the path of the library.

I don't think it works on *all* platforms, but it does work on the main ones (gnu/linux, and windows at least).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]