diff options
Diffstat (limited to 'Foundation/GTMStackTrace.m')
-rw-r--r-- | Foundation/GTMStackTrace.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Foundation/GTMStackTrace.m b/Foundation/GTMStackTrace.m index 568b5d7..5e832c2 100644 --- a/Foundation/GTMStackTrace.m +++ b/Foundation/GTMStackTrace.m @@ -144,6 +144,11 @@ static NSUInteger GTMGetStackAddressDescriptorsForAddresses(void *pcs[], currDesc->class_name = NULL; } currDesc->filename = info.dli_fname; + if (!currDesc->symbol) { + currDesc->symbol = "???"; + currDesc->is_class_method = NO; + currDesc->class_name = NULL; + } } GTMFreeClassDescriptions(class_descs, class_desc_count); return count; |