Bug 905428 - Use hex addresses when symbolicating Obj-C exceptions. r=dougt, r=bsmedberg

This commit is contained in:
J. Ryan Stinnett 2013-08-14 17:50:43 -05:00
parent 44ef6357a7
commit 5444112ff2

View File

@ -84,8 +84,11 @@ static void nsObjCExceptionLog(NSException* aException)
unsigned int stackCount = [stackTrace count];
unsigned int stackIndex = 0;
for (; stackIndex < stackCount; stackIndex++)
[args addObject:[[stackTrace objectAtIndex:stackIndex] stringValue]];
for (; stackIndex < stackCount; stackIndex++) {
NSUInteger address =
[[stackTrace objectAtIndex:stackIndex] unsignedIntegerValue];
[args addObject:[NSString stringWithFormat:@"0x%lx", address]];
}
NSPipe *outPipe = [NSPipe pipe];