mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
* Source/NSException.m:
* Headers/Foundation/NSThread.h: Add trivial implementation of +[NSThread callStackSymbols] that uses GSStackTrace. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37249 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a725079d00
commit
f1cf2f888f
3 changed files with 26 additions and 0 deletions
|
@ -1107,6 +1107,16 @@ callUncaughtHandler(id value)
|
|||
|
||||
@end
|
||||
|
||||
@implementation NSThread (CallStackSymbols)
|
||||
|
||||
+ (NSArray *) callStackSymbols
|
||||
{
|
||||
GSStackTrace *stackTrace = [[[GSStackTrace alloc] init] autorelease];
|
||||
NSArray *symbols = [stackTrace symbols];
|
||||
return symbols;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
void
|
||||
_NSAddHandler (NSHandler* handler)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue